Bug 241564

Summary: Intl.DateTimeFormat returns ethiopic-amete-alem rather than ethioaa for calendar in resolvedOptions
Product: WebKit Reporter: Devon Govett <govett>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: mmaxfield, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   

Description Devon Govett 2022-06-13 12:11:59 PDT
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

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.
Comment 1 Radar WebKit Bug Importer 2022-06-20 12:12:12 PDT
Comment 2 Yusuke Suzuki 2022-07-06 13:26:47 PDT
This depends on ICU version. And now system ICU version is updated and fixed.