This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Moving the Japanese Era data out of the locales
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 14 Mar 2018 11:44:40 +0100
- Subject: Moving the Japanese Era data out of the locales
- Authentication-results: sourceware.org; auth=none
We have some level of Japanese Era support in strftime:
$ LC_ALL="ja_JP.utf-8" date +%Ec
平成30年03月14日 10時41分04秒
$ LC_ALL="ja_JP.utf-8" date +%EY
平成30年
(date may actually use a separate copy of the strftime code, but I
believe it is substantially identical to the glibc implementation.)
There is going to be a transition in 2019 (bug 22964). Having this in
locale information is a bit problematic for (some) distributions because
they have to update glibc for all users, on all release branches, just
to deliver this change.
Could we synthesize this data from a dedicated file in
/usr/share/locale, by changing the code in time/era.c? Then
distributions can ship this file as part of tzdata, which has a
different update procedure from glibc.
Thanks,
Florian