<i18n dev> RFR: 8358819: The first year is not displayed correctly in Japanese Calendar

Iris Clark iris at openjdk.org
Wed Jun 11 17:47:29 UTC 2025


On Tue, 10 Jun 2025 18:36:15 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> This regression was introduced by the removal of the COMPAT locale provider, which partially broke support for the first year in the Japanese calendar. In the Japanese calendar system, the first year of an era should be formatted using the character "元" rather than the numeral "1". The issue arises from a difference in how pattern character lengths are interpreted between CLDR and SimpleDateFormat. The existing `JapaneseEraNameTest` has been updated to cover this fix.

Marked as reviewed by iris (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/25732#pullrequestreview-2918162430


More information about the i18n-dev mailing list