From: mpmp at zoznam dot sk Operating system: Linux PHP version: 5.1.2 PHP Bug Type: Arrays related Bug description: sort with SORT_LOCALE_STRING
Description: ------------ I am using setlocale(LC_ALL, 'slovak'); Accented characters are not properly sorted on Linux. On windows this code runs well. Locales are installed, and other locales related functions run well. Reproduce code: --------------- $pole = array ( 'čaj', 'ľad', 'ťahaj', 'ábel', 'la', 'íver', 'iť', 'éger', 'ôler', 'ňano', 'äj', 'Ľadový'); setlocale (LC_ALL, "slovak"); sort ($pole, SORT_LOCALE_STRING); Expected result: ---------------- Array ( [0] => ábel [1] => äj [2] => čaj [3] => éger [4] => íver [5] => ľad [6] => Ľadový [7] => ňano [8] => ôler [9] => la [10] => ťahaj [11] => iť ) Actual result: -------------- Array ( [0] => ábel [1] => ťahaj [2] => äj [3] => čaj [4] => éger [5] => iť [6] => íver [7] => la [8] => ňano [9] => ôler [10] => Ľadový [11] => ľad ) -- Edit bug report at http://bugs.php.net/?id=36718&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36718&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36718&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36718&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36718&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36718&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36718&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36718&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36718&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36718&r=support Expected behavior: http://bugs.php.net/fix.php?id=36718&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36718&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36718&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36718&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36718&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36718&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36718&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36718&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36718&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36718&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36718&r=mysqlcfg