public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/24046] en_US locale doesn't define date_fmt
[not found] <bug-24046-131@http.sourceware.org/bugzilla/>
@ 2020-03-12 2:37 ` sourceware at nerdbynature dot de
2020-03-12 9:09 ` schwab@linux-m68k.org
2020-05-05 13:57 ` carlos at redhat dot com
2 siblings, 0 replies; 3+ messages in thread
From: sourceware at nerdbynature dot de @ 2020-03-12 2:37 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug localedata/24046] en_US locale doesn't define date_fmt
[not found] <bug-24046-131@http.sourceware.org/bugzilla/>
2020-03-12 2:37 ` [Bug localedata/24046] en_US locale doesn't define date_fmt sourceware at nerdbynature dot de
@ 2020-03-12 9:09 ` schwab@linux-m68k.org
2020-05-05 13:57 ` carlos at redhat dot com
2 siblings, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2020-03-12 9:09 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=24046
--- Comment #9 from Andreas Schwab <schwab@linux-m68k.org> ---
If you want a fixed format, then don't use any locale dependent formatting
directive.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug localedata/24046] en_US locale doesn't define date_fmt
[not found] <bug-24046-131@http.sourceware.org/bugzilla/>
2020-03-12 2:37 ` [Bug localedata/24046] en_US locale doesn't define date_fmt sourceware at nerdbynature dot de
2020-03-12 9:09 ` schwab@linux-m68k.org
@ 2020-05-05 13:57 ` carlos at redhat dot com
2 siblings, 0 replies; 3+ messages in thread
From: carlos at redhat dot com @ 2020-05-05 13:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=24046
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=25923
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-05 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-24046-131@http.sourceware.org/bugzilla/>
2020-03-12 2:37 ` [Bug localedata/24046] en_US locale doesn't define date_fmt sourceware at nerdbynature dot de
2020-03-12 9:09 ` schwab@linux-m68k.org
2020-05-05 13:57 ` carlos at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).