Comment 0 for bug 1828884

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote : Handling Japanese new era "令和 (Reiwa)"

[Background]
Many packages are affected by the requirement to support the new era "Reiwa" (令和)

This is the meta bug to track packages that need fixes; which packages have already been SRUd to previous releases, how to prioritize the work needed, and general test cases for verifying that things are working as expected.

[Impact]
Users who run Ubuntu in Japanese.

[Test cases]

== Date conversion ==

On applications that support writing dates in long form, or with symbols to denote era (either in X00.00.00 format or in GG1G5G1G format (G- glyph; X- character):

1) Enable date formatting in each of the above formats that are supported (long form or symbols)
2) Type in '2019/05/01' to be formatted, verify that it shows as "令和1年5月1日" or "R1.05.01"
3) Type in '2019/04/30' to be formatted, verify that it shows as "平成31年4月30日" or "H31.4.30"

== Date output ==

1) Set date to 2019/05/01
2) Output date; verify that the year it is displayed as "令和元年"
3) Set date to 2019/04/30
4) Output date; verify that the year is diplayed as "平成31年"

=== Displaying formatted year for Japanese era with glibc ===

Run:
LC_ALL=ja_JP.utf8 date +%EY -d 20190430 # previous era (should still work as before SRUs)
or
LC_ALL=ja_JP.utf8 date +%EY -d 20190501 # new era (should now correctly display the new era)

== Character maps / font support ==

1) Search for character "SQUARE ERA NAME"
2) Verify that the results include at least "SQUARE ERA NAME HEISEI" and "SQUARE ERA NAME REIWA" (there should also be Syouwa, Taisyou and Meizi), and that the glyphs are readable:

 - SQUARE ERA NAME HEISEI: ㍻
 - SQUARE ERA NAME REIWA: 令和 (in a single glyph)

Display of the Reiwa square glyph is font-specific; it may show simply as a empty square or a square with hex characters. If that is the case, the unicode data supports the new character, but the selected font does not include the new glyph.

== Typing / input methods ==

1) Type in 'heisei'
2) Verify that the input method in use gives you an option "平成", and optionally also the square era glyph.
1) Type in 'reiwa'
2) Verify that the input method in use gives you an option that includes "令和", and possibly also the square era glyph (if supported for Heisei)

[Regression potential]
This is a potentially large change as it impacts font display, character sets as well as date conversions. As such, extreme care should be taken to ensure that regressions are avoided, such that dates previous to May 1, 2019 continue to display as before, and dates onward are displayed with the new era symbols. The included test cases account for verifying the continued behavior or previous dates.