<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&#64;gmail.com" title="Sukolsak Sakshuwong &lt;sukolsak&#64;gmail.com&gt;"> <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">&gt; &gt; We should never assume that the default locale is English anyway.
&gt; 
&gt; Why are you saying that? Tests should run in a predictable environment - we
&gt; don't them to fail for people whose computers are configured to use a
&gt; 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'.

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

&quot;new Intl.Collator('en')&quot; returns a collator with the English locale. We can predict the value of &quot;new Intl.Collator('en').compare('a', 'A')&quot;.</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>