Bug 241564 - Intl.DateTimeFormat returns ethiopic-amete-alem rather than ethioaa for calendar in resolvedOptions
Summary: Intl.DateTimeFormat returns ethiopic-amete-alem rather than ethioaa for calen...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-13 12:11 PDT by Devon Govett
Modified: 2022-07-06 13:26 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
"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.
Comment 1 Radar WebKit Bug Importer 2022-06-20 12:12:12 PDT
<rdar://problem/95548162>
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.