Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Issue 19254 Javascript localeCompare is not locale-dependent
Starred by 9 users Reported by honza.st...@gmail.com, Aug 13, 2009 Back to list
Status: WontFix
Owner: ----
Closed: Jun 2015
Cc: lafo...@chromium.org, jon@chromium.org, ager@chromium.org, js...@chromium.org, progame@chromium.org
Components:
OS: All
Pri: 2
Type: Bug


Sign in to add a comment
Chrome Version       : 2.0.172.39
URLs (if applicable) : http://www.clipboard.cz/7uv
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 
link.

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
possible.

 
Comment 1 by progame@chromium.org, Aug 13, 2009
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 4.0.202.0 (Developer Build 23278)

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

Comment 8 by js...@chromium.org, 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);  
</script>

It seems that this has to be filed against V8.  I just did. It's 
http://code.google.com/p/v8/issues/detail?id=622



Related to this is a V8 bug 180 ( http://code.google.com/p/v8/issues/detail?id=180 ).




Comment 9 by js...@chromium.org, Feb 25, 2010
Blockedon: -31886
Labels: -Area-WebKit Javascript
Comment 10 by js...@chromium.org, Feb 25, 2010
Issue 35600 has been merged into this issue.
Comment 12 by js...@chromium.org, Mar 11, 2010
Comment 13 by js...@chromium.org, Mar 11, 2010
Status: ExternalDependency
Comment 14 by js...@chromium.org, Mar 24, 2010
Labels: -Mstone-5 Mstone-6
Not likely to happen in Mstone-5
Comment 15 by js...@chromium.org, 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 bugdroid1@chromium.org, Mar 10, 2013
Labels: -Feature-I18N Cr-UI-I18N
Project Member Comment 19 by bugdroid1@chromium.org, Mar 20, 2013
Labels: -Cr-UI-I18N Cr-UI-Internationalization
Comment 20 by tkent@chromium.org, Jun 2, 2015
Status: WontFix
Closing according to https://code.google.com/p/v8/issues/detail?id=459

Sign in to add a comment