[Webkit-unassigned] [Bug 197213] [INTL] en-NZ locale defaults to en-US locale instead of using en-NZ

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 30 15:22:36 PDT 2019


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

--- Comment #5 from Andy VanWagoner <andy at vanwagoner.family> ---
JSC looks up the default locale from its embedder (Foundation or WebCore), falling back to libicu's default locale, and ultimately to "en" if none of those others had a value.

Resolving to a "closest" default locale is not specified in the ECMA 402 spec, but I agree "en-US" isn't a great fit for "en-NZ".

I can't speak to where the logic ultimately would need to change (Foundation, WebCore, or elsewhere in Safari), but it's not currently in JSC.

Does `navigator.language` agree with `Intl.DateTimeFormat().resolvedOptions().locale`?

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


More information about the webkit-unassigned mailing list