<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [iOS Simulator] js/intl-collator.html failing"
href="https://bugs.webkit.org/show_bug.cgi?id=152448#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [iOS Simulator] js/intl-collator.html failing"
href="https://bugs.webkit.org/show_bug.cgi?id=152448">bug 152448</a>
from <span class="vcard"><a class="email" href="mailto:sukolsak@gmail.com" title="Sukolsak Sakshuwong <sukolsak@gmail.com>"> <span class="fn">Sukolsak Sakshuwong</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=152448#c8">comment #8</a>)
<span class="quote">> > 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.</span >
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')".</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>