This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH] Multiple locales: Use the correct date and time formats (bug 10496, 23724).
- From: TAMUKI Shoichi <tamuki at linet dot gr dot jp>
- To: Rafal Luzynski <digitalfreak at lingonborough dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 03 Nov 2018 13:06:27 +0900
- Subject: Re: [RFC][PATCH] Multiple locales: Use the correct date and time formats (bug 10496, 23724).
- References: <726702465.188131.1541157069943@poczta.nazwa.pl>
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