[RFC][PATCH] Multiple locales: Use the correct date and time formats (bug 10496, 23724).
TAMUKI Shoichi
tamuki@linet.gr.jp
Sat Nov 3 04:06:00 GMT 2018
Hello Rafal,
From: Rafal Luzynski <digitalfreak@lingonborough.com>
Subject: [RFC][PATCH] Multiple locales: Use the correct date and time formats (bug 10496, 23724).
Date: Fri, 2 Nov 2018 12:11:09 +0100 (CET)
> It also sets the correct date format because the old "%Y-%b-%d" produced
> rather weird results like "2018-Sht-28".
>
> (snip)
>
> diff --git a/localedata/locales/sq_AL b/localedata/locales/sq_AL
> index 9cec37a..a90251f 100644
> --- a/localedata/locales/sq_AL
> +++ b/localedata/locales/sq_AL
> @@ -303,16 +303,19 @@ mon "janar";/
> am_pm "PD";"MD"
> %
> % Appropriate date and time representation
> -d_t_fmt "%Y-%b-%d %I.%M.%S.%p %Z"
> +d_t_fmt "%a %-d %b %Y %l:%M:%S.%p"
I am afraid that change will unable to keep it a constant width.
How about using "%a %_d %b %Y %l:%M:%S.%p" instead.
> +%
> +% Appropriate date representation for date(1)
> +date_fmt "%a %-d %b %Y %l:%M:%S.%p %Z"
Likewise, how about using "%a %_d %b %Y %l:%M:%S.%p %Z" instead.
> %
> % Appropriate date representation
> -d_fmt "%Y-%b-%d"
> +d_fmt "%-d.%-m.%y"
Likewise, how about using "%_d.%_m.%y" instead.
Regards,
TAMUKI Shoichi
More information about the Libc-alpha
mailing list