This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4/4] ja_JP locale: Add entry for the new Japanese era [BZ #22964]


* TAMUKI Shoichi:

>  % The following dates and their names are recorded below in descending
>  % date order (note that <U5E74> or <NEN> follows each date).
> -% <HEISEI> -> <SHOWA> -> <TAISHO> -> <MEIJI> -> <AD> -> <BC>
> +% <REIWA> -> <HEISEI> -> <SHOWA> -> <TAISHO> -> <MEIJI> -> <AD> -> <BC>
>  %
>  % Each string is an era description segment with the format:
>  % "direction:offset:start_date:end_date:era_name:era_format"
> @@ -14964,7 +14964,9 @@ t_fmt_ampm "%p%I<U6642>%M<U5206>%S<U79D2>"
>  % - The last entry <U7D00><U5143><U524D> in era_name means BC.
>  % - The second-to-last entry <U897F><U66A6> in era_name means AD.
>  %
> -era	"+:2:1990//01//01:+*:<U5E73><U6210>:%EC%Ey<U5E74>";/
> +era	"+:2:2020//01//01:+*:<U4EE4><U548C>:%EC%Ey<U5E74>";/
> +	"+:1:2019//05//01:2019//12//31:<U4EE4><U548C>:%EC<U5143><U5E74>";/
> +	"+:2:1990//01//01:2019//04//30:<U5E73><U6210>:%EC%Ey<U5E74>";/

Based on <https://www.kantei.go.jp/jp/tyoukanpress/201904/1_a.html>and

  新しい元号は「令和」であります。

the encoding appears to be correct.

> diff --git a/time/tst-strftime2.c b/time/tst-strftime2.c
> index 2c94bf592e..532e68f7d3 100644
> --- a/time/tst-strftime2.c
> +++ b/time/tst-strftime2.c
> @@ -54,7 +54,9 @@ static const date_t dates[] =
>    {  1,  4, 1997 },
>    {  1,  4, 1998 },
>    {  1,  4, 2010 },
> -  {  1,  4, 2011 }
> +  {  1,  4, 2011 },
> +  { 30,  4, 2019 },
> +  {  1,  5, 2019 }

Do we need tests for 2020 as well, for the other added rule?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]