Bug #15706: readdir doesn't return correct FRENCH filenames
| From: | musallam at sympatico dot ca | Date: | Mon, 25 Feb 2002 04:39:09 +0000 |
| Subject: | Bug #15706: readdir doesn't return correct FRENCH filenames | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-987@lists.php.net to get a copy of this message | ||
From: musallam@sympatico.ca
Operating system: WIN XP
PHP version: 4.1.1
PHP Bug Type: Directory function related
Bug description: readdir doesn't return correct FRENCH filenames
hi,
I'm think this is a valid bug :)
I'm trying to list files from a certain directory with readdir() but any
accented capital letter is returned without the accent... I'll explain:
----------------------------------
my directory listing is:
.
..
Bloqueurs des canaux calciques voltage.doc
Diurétiques.doc
REGF et JNK.pdf
Éicosanoides.doc <--------
----------------------------------
the file pointed by the arrow is returned "Eicosanoides.doc" no accent on
the capital E.
The problem isn't present with lowercase letters, i.e. the filename
"Diurétiques.doc" is returned correctly.
here's my code:
$handle=opendir($dir);
echo "Files:<br>\n";
while (false !== ($file = readdir($handle))) {
echo "<br>$file\n";
}
closedir($handle);
I hope this is enough info, dont hesitate to email me for anything. I'm
running Apache1.3.23 with PHP4.1.1 binaries from php.net
--
Edit bug report at http://bugs.php.net/?id=15706&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15706&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15706&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15706&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15706&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15706&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15706&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15706&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15706&r=submittedtwice