Uploaded image for project: 'ICU'
  1. ICU-20441

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

    Details

    • Type: Enhancement
    • Status: Done (View workflow)
    • Priority: critical
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 64.1
    • Components: format_date
    • Labels:
    • Time Needed:
      Hours

      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.

        Attachments

          Activity

            People

            • Assignee:
              pedberg Peter Edberg
              Reporter:
              pedberg Peter Edberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: