#38203 [Ver->Asn]: strnatcmp and strnatcasecmp do not handle swedish characters correctly

From: Date: Wed, 26 Jul 2006 23:33:49 +0000
Subject: #38203 [Ver->Asn]: strnatcmp and strnatcasecmp do not handle swedish characters correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99956@lists.php.net to get a copy of this message
 ID:               38203
 Updated by:       sniper@php.net
 Reported By:      thomas at uninet dot se
-Status:           Verified
+Status:           Assigned
 Bug Type:         Strings related
 Operating System: *
 PHP Version:      5CVS, 4CVS (2006-07-27)
-Assigned To:      
+Assigned To:      andrei
 New Comment:

This is Andrei's code, according to the notes in the code.


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

[2006-07-26 09:33:48] thomas at uninet dot se

For what reason is the status downgraded to Bogus?
Doesn't I have the problem I have or is the non-ascii-world not big
enough to make a solution?

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

[2006-07-25 08:03:40] thomas at uninet dot se

Added support for sv_SE so setlocale returns "sv_SE" but it still
doesn't work.

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

[2006-07-25 07:49:54] thomas at uninet dot se

setlocale(LC_ALL, 'se_SV') returns bool(false).

Even if the setlocale doesn't work it still gives a correct response
with strcmp and strcasecmp which (I think) indicates that the *nat*
functions uses another approach than the other compare functions.

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

[2006-07-25 07:41:19] derick@php.net

The locale identifier is sv_SE and not se_SV.

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

[2006-07-25 07:38:43] tony2001@php.net

what do you get with var_dump(setlocale(LC_ALL, 'se_SV')); ?

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/38203

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


Thread (10 messages)

« previous php.bugs (#99956) next »