[Webkit-unassigned] [Bug 152448] [iOS Simulator] js/intl-collator.html failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 19 14:57:33 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=152448

--- Comment #9 from Sukolsak Sakshuwong <sukolsak at gmail.com> ---
(In reply to comment #8)
> > We should never assume that the default locale is English anyway.
> 
> Why are you saying that? Tests should run in a predictable environment - we
> don't them to fail for people whose computers are configured to use a
> different language or locale.

That is what this patch is trying to do. The currently existing test will fail if the user uses a different locale that has a different order for 'a' and 'A'.

"new Intl.Collator()" returns a collator with the default locale. We cannot predict the value of "new Intl.Collator().compare('a', 'A')".

"new Intl.Collator('en')" returns a collator with the English locale. We can predict the value of "new Intl.Collator('en').compare('a', 'A')".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151219/0b308f92/attachment.html>


More information about the webkit-unassigned mailing list