ID: 46990
Updated by: [email protected]
Reported By: alex dot bazan at concatel dot com
Status: Open
Bug Type: *Directory/Filesystem functions
-Operating System: Windows XP
+Operating System: win32 only - Windows XP
PHP Version: 5.2.8
New Comment:
Previous Comments:
------------------------------------------------------------------------
[2009-01-02 08:06:39] alex dot bazan at concatel dot com
The UTF string did not get saved correctly in the bug report. It was a
japanese string.
------------------------------------------------------------------------
[2009-01-02 08:03:37] alex dot bazan at concatel dot com
Description:
------------
Under Windows, when I use fpoen() or mkdir() with a UTF8 encoded
string, the file or directory name is not converted to the filesystem
encoding and thus the file or directory is created with a wrong file
name.
Reproduce code:
---------------
<?php mkdir('日本語'); ?>
Expected result:
----------------
Directory 日本語 should be created
Actual result:
--------------
Directory æ¥æ¬èª is created
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46990&edit=1