#46990 [Opn]: Passing UTF8 strings to filesystem functions produce wrong filenames
| From: | jani@php.net | Date: | Sat, 03 Jan 2009 13:25:08 +0000 |
| Subject: | #46990 [Opn]: Passing UTF8 strings to filesystem functions produce wrong filenames | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132524@lists.php.net to get a copy of this message | ||
ID: 46990
Updated by: jani@php.net
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