Support Japanese new era "令和 (Reiwa)"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[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 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)
[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.
CVE References
tags: | added: id-5d42fbcc5d97f98088910829 |
Fixes for this are already included in 2.28/2.29:
https:/ /sourceware. org/bugzilla/ show_bug. cgi?id= 22964 /sourceware. org/git/ gitweb. cgi?p=glibc. git;a=commit; h=7423da211d149 0d9fc76c2f0ce49 e5dd90ea9bcc
https:/
Already included in Eoan.