[Bug 1838327] Re: Support Japanese new era "令和 (Reiwa)"

Balint Reczey 1838327 at bugs.launchpad.net
Fri Oct 9 16:41:31 UTC 2020


Verified with 2.27-3ubuntu1.3 on Bionic:

ubuntu at ip-172-31-33-219:~$ dpkg -l libc6 libc6-lse | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version         Architecture Description
+++-===============-===============-============-=================================
ii  libc6:arm64     2.27-3ubuntu1.3 arm64        GNU C Library: Shared libraries
ii  libc6-lse:arm64 2.27-3ubuntu1.3 arm64        GNU C Library: Shared Libraries
ubuntu at ip-172-31-33-219:~$ sudo dpkg-reconfigure ^C
ubuntu at ip-172-31-33-219:~$ LC_ALL=ja_JP.utf8 date +%EY -d 20190430
2019
ubuntu at ip-172-31-33-219:~$ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_US.UTF-8... done
  ja_JP.UTF-8... done
Generation complete.
ubuntu at ip-172-31-33-219:~$ LC_ALL=ja_JP.utf8 date +%EY -d 20190430
平成31年
ubuntu at ip-172-31-33-219:~$ LC_ALL=ja_JP.utf8 date +%EY -d 20190501
令和元年
ubuntu at ip-172-31-33-219:~$ dpkg -l locales
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                 Architecture            Description
+++-=====================================-=======================-=======================-================================================================================
ii  locales                               2.27-3ubuntu1.3         all                     GNU C Library: National Language (locale) data [support]


** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1838327

Title:
  Support Japanese new era "令和 (Reiwa)"

Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Xenial:
  New
Status in glibc source package in Bionic:
  Fix Committed
Status in glibc source package in Disco:
  Won't Fix

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1838327/+subscriptions



More information about the foundations-bugs mailing list