New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 9 users
Status: WontFix
Owner: ----
Closed: Jun 2015
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Sign in to add a comment
Javascript localeCompare is not locale-dependent
Reported by, Aug 13 2009 Back to list
Chrome Version       :
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Safari 4: Not tested
  Firefox 3.x: OK
         IE 7: OK
         IE 8: OK

What steps will reproduce the problem?
1. Compare strings "honza" and "čenda" (test script can be seen in the 

What is the expected result?
The string čenda should go BEFORE honza as it does in other browsers.

What happens instead?
String čenda goes AFTER honza

Please provide any additional information below. Attach a screenshot if

Labels: -Area-Misc Area-WebKit Chrome-Specific
Status: Untriaged
only Opera and chrome get the string "honza goes BEFORE čenda" in this test
confirmed using chrome (Developer Build 23278)

(safari is OK)
Comment 3 by, Oct 21 2009
Labels: I18N Mstone-X
Comment 4 by, Dec 22 2009
Labels: -Mstone-X Mstone-5
Status: Assigned
Comment 6 by, Jan 6 2010
Labels: -chrome-specific chrome-only
Comment 7 by, Feb 24 2010
Blockedon: 31886
It depends on  bug 31886 . I have a patch pending review for that. 

Comment 8 by, Feb 25 2010
Summary: Javascript localeCompare is not locale-dependent (was: NULL)
<script type="text/javascript">  
var a = new String( "honza" );  
var b = new String("čenda");  
// Should return positive integer  
var ret = a.localeCompare(b);  

It seems that this has to be filed against V8.  I just did. It's

Related to this is a V8  bug 180  ( ).

Comment 9 by, Feb 25 2010
Blockedon: -31886
Labels: -Area-WebKit Javascript
Comment 10 by, Feb 25 2010
 Issue 35600  has been merged into this issue.
Comment 12 by, Mar 11 2010
Comment 13 by, Mar 11 2010
Status: ExternalDependency
Comment 14 by, Mar 24 2010
Labels: -Mstone-5 Mstone-6
Not likely to happen in Mstone-5
Comment 15 by, Jun 16 2010
Labels: -Mstone-6 Mstone-X
This fails in my Firefox 3.6 running in Lucid, as well as Thunderbird 3.0 also running in Lucid .. LANG=en_CA.utf8

Comment 17 Deleted
Project Member Comment 18 by, Mar 10 2013
Labels: -Feature-I18N Cr-UI-I18N
Project Member Comment 19 by, Mar 20 2013
Labels: -Cr-UI-I18N Cr-UI-Internationalization
Status: WontFix
Closing according to

Sign in to add a comment