Force use of Gannen year numbers for non-numeric date fmts using Japanese calendar in "ja" locale

Description

Currently, CLDR data can only specify date-format-field-specific numbering systems for the standard date formats. In "ja" locale for Japanese calendar, the full/long/medium date formats specify y=jpanyear. How to address this?

Per TC discussion 2019-02-20:

  • By default, change SimpleDateFormat so if calendar is Japanese and format is not numeric only, use Gannen year numbering

  • Clients who want the old behavior (using 1 for first year of era) can use NumberFormat APIs that provide date-field-specific number formatter overrides (these exist in J, C++, C), e.g. udat_adoptNumberFormatForFields

  • No special semantics for numbers keyword.

Activity

Show:
Peter Edberg
February 22, 2019, 12:33 AM
Edited

Done in https://github.com/unicode-org/icu/pull/474

Notes:

Peter Edberg
February 22, 2019, 6:58 AM
Edited

There was an uninitialized variable that is causing random test failures. Fixed in https://github.com/unicode-org/icu/pull/478

Fixed

Assignee

Peter Edberg

Reporter

Peter Edberg

Components

Labels

Reviewer

None

Priority

critical

Time Needed

Hours

Fix versions

Configure