[RFC][PATCH] Multiple locales: Use the correct date and time formats (bug 10496, 23724).

Rafal Luzynski digitalfreak@lingonborough.com
Fri Nov 2 11:12:00 GMT 2018


Hi,

I need an advice.  Recently I've been working on a change which
initially seemed to be a simple one-liner but eventually turned
out to be updating 80 locales.  The change fixes the 12-hour time
formats, adding the AM/PM indicator and changing the hour format.
The locales mostly include those using Arabic language, from India,
and from the region of Eritrea, Ethiopia and Somalia.

My question is: should I treat the CLDR database literally and
change the time formats like "%I:%M:%S" to "%l:%M:%S" whenever CLDR
provides the time format "h:mm:ss"?  I spotted this difference while
importing the time formats from CLDR in order to find those which
should use the AM/PM indicator.

The difference is that "%I" is a zero-padded hour number while "%l"
is a space-padded hour number;  in CLDR format "h" is an hour number
using as many digits as necessary (no additional padding mentioned).

My doubt is because the original complaint here was about missing the
AM/PM indicator, nobody complained about the clock using the zero-padded
hour number.

I am afraid that the change is minor and irrelevant and most people's
answer even from the involved countries is "I don't know/I don't care".
So if the glibc community does not provide any sustained objection I will
prepare and eventually commit this change.

As a sample here please find attached a patch for Albanian language.
I'd like to fix this locale as a separate patch because this also
fixes the date formats and it cannot be separated from the time formats.
If accepted I will commit this patch and move to other locales.

I am consulting this change with the people from Albania and India but
I don't know anyone speaking Arabic or living in Eritrea, Ethiopia
or Somalia.

Regards,

Rafal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sq_AL-Use-the-correct-date-and-time-formats-bug-1049.patch
Type: text/x-patch
Size: 1865 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20181102/f3bd2cd5/attachment.bin>


More information about the Libc-alpha mailing list