Re: utf-8 filenames in phar files.
| From: | Yasuo Ohgaki | Date: | Fri, 14 Feb 2014 00:08:24 +0000 |
| Subject: | Re: utf-8 filenames in phar files. | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72571@lists.php.net to get a copy of this message | ||
Hi Dan,
On Fri, Feb 14, 2014 at 6:55 AM, Dan Ackroyd <danack@basereality.com> wrote:
> I just submitted a PR (https://github.com/php/php-src/pull/588) to
> allow utf-8 chars to be included in file names that are put into a
> phar file.
>
I think it better to have Unicode normalization. (NFC) Otherwise, there may
be multiple files which seem have the same file name. To be perfect, you
may detect platform and convert to NFD where it is applicable. e.g. OSX.
You can use ICU for normalization.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net