#22931 [NEW]: Array Sort/Multisort -> wrong string sorting with special, national characters
| From: | marek at lewczuk dot com | Date: | Thu, 27 Mar 2003 16:16:31 +0000 |
| Subject: | #22931 [NEW]: Array Sort/Multisort -> wrong string sorting with special, national characters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-36592@lists.php.net to get a copy of this message | ||
From: marek at lewczuk dot com
Operating system: Linux/Windows
PHP version: 4.3.0
PHP Bug Type: Arrays related
Bug description: Array Sort/Multisort -> wrong string sorting with special, national characters
Sorting an array has a very important bug. If your app is using e.g.
ISO-8859-2 charset and strings array use special chars like Å,Ä... PHP
doesn't sort strings which use them. I have tried to use setLocale
(setLocale is working correctly with strtoupper, strtolower etc.) but
nothing. The problem is also in UTF8 charset. This very serious problem...
--
Edit bug report at http://bugs.php.net/?id=22931&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22931&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22931&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22931&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22931&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22931&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22931&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22931&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22931&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22931&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22931&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22931&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22931&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22931&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22931&r=gnused