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] en_US: define date_fmt (bug 24046)


On 2018-12-31 11:53, Florian Weimer wrote:
> * Aurelien Jarno:
> 
> > The en_US locale use a 12h am/pm format in both d_fmt and d_t_fmt, which
> > is correct, but does not define date_fmt. This cause the default value
> > to be used, which is in 24h format.
> 
> Perhaps this format was chosen for alignment with asctime?

I don't think this has been a deliberated choice. Support for date_fmt
(which is a GNU extension), has been added back in 2000 in commit
d8337213c8. At that time all locales got date_fmt set to the default
setting, and later locales got this value updated through the years.
This has never been done for the US locale. Then in commit 2e7a461328
all locales with the default value got this field removed.

> Is there any system which uses 12h format with the date command?

Yes, the following locale use a 12h format with the date command:
aa_DJ aa_ER aa_ET am_ET az_IR byn_ER el_CY el_GR fa_IR gez_ER gez_ET
ku_TR lzh_TW om_ET om_KE sid_ET so_DJ so_ET so_KE so_SO ti_ER ti_ET
tig_ER uz_UZ wal_ET

> I wonder whether our users expect such a change.

At least a few users, but I agree it's difficult to know for the
majority of users.

Regards,
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


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