Comment #16 on issue 459 by abyssoft: localeCompare implementation differs
from other browsers
http://code.google.com/p/v8/issues/detail?id=459
Additionally the .localeCompare() returns unexpected values in that it
should only return 1, 0 ,-1 currently it is return a comparison of the char
code points.
"a".localeCompare("Z") should return -1 but instead returns 7 which is the
charcode of "a" - charcode of "Z"
Return Value:
0 : It string matches 100%.
-1 : no match, and the parameter value comes before the string object's
value in the locale sort order
1 : no match, and the parameter value comes after the string object's value
in the locale sort order
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev