[Bug localedata/24046] en_US locale doesn't define date_fmt

sourceware at nerdbynature dot de sourceware-bugzilla@sourceware.org
Thu Mar 12 02:37:20 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=24046

CK <sourceware at nerdbynature dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sourceware at nerdbynature dot de

--- Comment #8 from CK <sourceware at nerdbynature dot de> ---
Hm, is this really fixed? Even with glibc 2.29 and newer I have trouble getting
a 24 hour time output:


==========================================================
$ /lib/x86_64-linux-gnu/libc.so.6 | head -1
GNU C Library (Debian GLIBC 2.29-10) stable release version 2.29.

$ export LC_TIME=C
$ date; date +%c; date +%X
Wed 11 Mar 2020 07:01:50 PM PDT
Wed 11 Mar 2020 07:01:50 PM PDT
07:01:50 PM
==========================================================


Setting "LC_TIME" to different values (en_GB, de_DE) doesn't help, although the
locale definitions would be available:

==========================================================
$ strace -e openat -f date 
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
Wed 11 Mar 2020 07:09:08 PM PDT
+++ exited with 0 +++

$ strings /usr/lib/locale/locale-archive | grep en_GB
en_GB.iso88591
en_GB
en_GB.utf8
en_GB.iso885915
==========================================================


Same result when setting every other LC_* variable to "C" or "en_GB" -- only
LC_ALL=en_GB did the trick. The same for two other systems, both running glibc
2.30. Only some glibc 2.31 system appears to do The Right Thing:

==========================================================
$ LC_TIME=C date
Wed Mar 11 18:46:37 PDT 2020

$ LC_TIME=en_US date
Wed 11 Mar 2020 06:46:48 PM PDT

$ LC_TIME=en_GB date
Wed Mar 11 18:46:54 PDT 2020
==========================================================


Could this be related to commit 75ba929987 ("Multiple locales: Add date_fmt
(bug 24054)") perhaps?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libc-locales mailing list