Updates:
        Status: Accepted

Comment #2 on issue 459 by christian.plesner.hansen: localeCompare  
implementation differs from other browsers
http://code.google.com/p/v8/issues/detail?id=459

The spec doesn't say how this function should behave, just that it should  
impose a
total order on strings and that canonically equivalent strings should be  
equal.  V8
uses the raw UCS16 character values for all locales which definitely seems  
wrong since
'a' should come before 'B'.  I'm assuming the results above are for en-us;  
I wonder if
the behavior changes between locales.  In a Nordic locale I would  
expect 'รค' to come
after 'z' whereas in German it should come before 'b'.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to