2018-11-02 11:11:09 UTC
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
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