Bug 241564
Summary: | Intl.DateTimeFormat returns ethiopic-amete-alem rather than ethioaa for calendar in resolvedOptions | ||
---|---|---|---|
Product: | WebKit | Reporter: | Devon Govett <govett> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | mmaxfield, webkit-bug-importer, ysuzuki |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 15 | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Devon Govett
In Safari, using the ethioaa calendar results in "ethiopic-amete-alem" being returned for the resolved calendar rather than "ethioaa".
> new Intl.DateTimeFormat('en-US-u-ca-ethioaa').resolvedOptions().calendar
"ethiopic-amete-alem"
In Chrome and Firefox, this returns "ethioaa". I believe "ethiopic-amete-alem" is an identifier used by ICU, but the canonical identifier used by CLDR is "ethioaa". Safari seems to be detecting the calendar correctly from the locale, just returning the wrong identifier in resolvedOptions.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/95548162>
Yusuke Suzuki
This depends on ICU version. And now system ICU version is updated and fixed.