Issue 622 in v8: localeCompare is not locale-dependent

5 views
Skip to first unread message

codesite...@google.com

unread,
Feb 25, 2010, 6:23:39 PM2/25/10
to v8-...@googlegroups.com
Status: New
Owner: ----

New issue 622 by js...@chromium.org: localeCompare is not locale-dependent
http://code.google.com/p/v8/issues/detail?id=622

Reported against Chrome ( http://crbug.com/19254)


<script type="text/javascript">
var a = new String( "honza" );
var b = new String("čenda");
// Should return positive integer
var ret = a.localeCompare(b);
</script>

In Czech locale, a should come after b, but it does not.

Related to this bug is bug 180. As I mentioned there, I wonder if there's a
way to take advantage of ICU when it's available (as in Chrome).






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

codesite...@google.com

unread,
Feb 25, 2010, 7:23:33 PM2/25/10
to v8-...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 459

Comment #1 on issue 622 by christian.plesner.hansen: localeCompare is not
locale-dependent
http://code.google.com/p/v8/issues/detail?id=622

This behavior is deliberate. For more detailed arguments why we ignore
locale see
http://code.google.com/p/v8/issues/detail?id=459.

Reply all
Reply to author
Forward
0 new messages