Skip to content

Formatting era index is really bad and will break in CLDR 48 #6444

@sffc

Description

@sffc

We should try to avoid shipping ICU4X code that we know will break in the next CLDR release.

CLDR will be changing the AH era to be index 1 instead of index 0 in the next release:

unicode-org/cldr#4581

This means that mismatched code and data will result in differing results, results that will be outright wrong. Not just unintelligible, but wrong. I noticed this in #6443

To fix this, I suggest making era index 0 be the primary era (all calendars using era indexes have a primary era) and index 1 the secondary era.

Except that might not work in Ethiopian... maybe just special-case Ethiopian?

@robertbastian @Manishearth

Metadata

Metadata

Assignees

Labels

2.0-breakingChanges that are breaking API changesC-calendarComponent: CalendarsS-smallSize: One afternoon (small bug fix or enhancement)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions