#42397 [Opn->Bgs]: problem with opening russian name files/directories
| From: | tony2001@php.net | Date: | Fri, 24 Aug 2007 10:31:25 +0000 |
| Subject: | #42397 [Opn->Bgs]: problem with opening russian name files/directories | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116606@lists.php.net to get a copy of this message | ||
ID: 42397
Updated by: tony2001@php.net
Reported By: norraxx at seznam dot cz
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: windows XP Professional (cz)
PHP Version: 5.2.3
New Comment:
Windows uses UCS2 internally, I'm pretty sure you're using some
different charset for your scripts, so file/dir funcs fail for obvious
reasons.
Previous Comments:
------------------------------------------------------------------------
[2007-08-23 13:04:00] norraxx at seznam dot cz
Description:
------------
functions: opendir, readdir, scandir etc...
1. can`t read/open russian named directories.
2. question marks are returned as a name of file while reading dir.
3. file exists write when create russian name directory
Reproduce code:
---------------
<?php
mkdir('./Îêîí÷àòåëüíóþ'); // there is russian named dir...
$x = scandir('.');
print_r($x);
echo "<br />{$x[2]}\n<br />";
chdir($x[2]);
$x = scandir('.');
print_r($x);
?>
Expected result:
----------------
I explected to create dir "Îêîí÷àòåëüíóþ" and go to this dir.
Actual result:
--------------
Warning: mkdir() [function.mkdir]: File exists in D:\www\bad\index.php
on line 2
Array ( [0] => . [1] => .. [2] => ????????????? [3] => index.php )
?????????????
Array ( [0] => . [1] => .. [2] => ????????????? [3] => index.php )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42397&edit=1