ID:               19795
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Strings related
 Operating System: FreeBSD 4.6
 PHP Version:      4.2.2
 New Comment:

Did you set-up your locales correctly?

Derick


Previous Comments:
------------------------------------------------------------------------

[2002-10-07 03:51:15] [EMAIL PROTECTED]

Characters with an ASCII value above 127 is considered to be the lower
value. This is a bit unfortunate if you use a language with special
characters (like the 3 danish letters after z in the list below).

  $list = array('a', 1, '2', '12', '1', 'z', 'æ', 'ø', 'å', chr(137),
chr(128));   
  usort($list, 'strnatcmp'); 
  var_dump($list);

The values above 127 are sorted correctly, they should just be
considered higher than A-z.

I believe I have seen this bug on a Solaris Unix as well. But that was
a while ago and I can not provide any detailed information on that
situation.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19795&edit=1

Reply via email to