Re: php can't resolve 8.3 paths to unicode filenames, is that expected ?
| From: | Pierre Joye | Date: | Thu, 15 Aug 2013 08:40:56 +0000 |
| Subject: | Re: php can't resolve 8.3 paths to unicode filenames, is that expected ? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-31122@lists.php.net to get a copy of this message | ||
hi!
On Wed, Aug 14, 2013 at 7:15 PM, R. S. <rsk82@live.com> wrote:
> Hello Pierre,
>
> Wednesday, August 14, 2013, 10:27:24 AM, you wrote:
>
>> COM is not PHP: You are calling the FileSystemObject's GetFile via COM
>> which uses unicode APIs under the hood. Nothing to do with PHP
>> streams.
>
> Yes, I know that, and here COM has no issues with unicode.
>
> But in my example COM is irrelevant it is used only to get
> short path, to be sure that it leads to the unicode file.
> You can create unicode file on your own and then try
> to open it using short or long paths using any script you like.
> And you see that only PHP among all scripting languages in incapable
> of getting handle to such files. Even the software that doesn't know
> a byte about unicode is capable of doing that but not PHP.
Short paths work just fine. Not sure what goes wrong with the COM APIs
or this test script.
But:
$shortpath= 'TESTUN~1.PHP';
$handle = fopen($shortpath, 'w');
works just fine.
Cheers,
--
Pierre
@pierrejoye | http://www.libgd.org