Closed Bug 1543644 Opened 6 years ago Closed 6 years ago

"internal error while computing Intl data" for "ja-u-ca-japanese" with "era" option

Categories

(Core :: JavaScript: Internationalization API, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox-esr60 --- unaffected
firefox66 --- unaffected
firefox67 --- unaffected
firefox68 + fixed

People

(Reporter: anba, Assigned: anba)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Requesting "era" field for Japanese calendar with Japanese locale throws an error:

js> print(new Intl.DateTimeFormat("ja-u-ca-japanese", {era:"short"}).format(new Date(2019,0,1)))
typein:1:66 Error: internal error while computing Intl data
Stack:
  @typein:1:66

No error is thrown for other locales:

js> print(new Intl.DateTimeFormat("en-u-ca-japanese", {era:"short"}).format(new Date(2019,0,1))) 
1 1, 31 Heisei

Regression from the ICU update in bug 1533481.

Tentatively setting as depends on bug 1543642, in case the update to ICU 64.2 will fix this bug.

No longer depends on: 1543642

ICU changes the numbering system of date formats which include an era marker
to "jpanyear". "jpanyear" is a rule-based numbering system and therefore the
RBNF data for the Japanese locale now need to be included.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED

[Tracking Requested - why for this release]:
Regression from bug 1533481, which will land in Firefox 68. (Currently an inscrutable error is thrown when requesting to display the "era" for Japanese locale with Japanese calendar.)

Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4802b506ce33
Include RBNF data for Japanese to support Gannen year representation. r=jwalden

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: