Comment #19 on issue 459 by [email protected]: localeCompare
implementation differs from other browsers
http://code.google.com/p/v8/issues/detail?id=459
Is it not possible to maybe have something like this?
var b = 'b';
b.localeCompare('ä'); // compare using whatever the user locale is
b.localeCompare('ä', 'de'); // compare using german locale, regardless of
user locale
and
var num = 123.45;
num.toLocaleString(); // returns '1.234,5' if your locale is norway (comma
decimal point, period thousand separator)
num.toLocaleString('us'); // returns '1,234.5' regardless of your locale
This would take into account both
1) those who want to actually display to the user what the user is familiar
with, and
2) those who want to display it in the format of a specific locale.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev