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

Naoto Sato naoto at openjdk.org
Thu Jun 12 18:07:38 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.

Thanks for the reviews!

Thanks for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/25732#issuecomment-2967394556
PR Comment: https://git.openjdk.org/jdk/pull/25732#issuecomment-2967755497


More information about the i18n-dev mailing list