public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/29777] New: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale @ 2022-11-12 1:35 bruno at clisp dot org 2022-11-12 1:40 ` [Bug libc/29777] " bruno at clisp dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: bruno at clisp dot org @ 2022-11-12 1:35 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29777 Bug ID: 29777 Summary: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale Product: glibc Version: 2.35 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: bruno at clisp dot org CC: drepper.fsp at gmail dot com Target Milestone: --- The C.UTF-8 locale was introduced in glibc 2.35, see https://sourceware.org/pipermail/libc-announce/2022/000033.html Unfortunately, it is undocumented. As a fallback, I assume that the wiki page https://sourceware.org/glibc/wiki/Proposals/C.UTF-8 , which carries the marker "Merged for glibc 2.35", describes the intention. This wiki page states "Setting LC_ALL=C.UTF-8 will ignore LANGUAGE just like it does with LC_ALL=C. See guess_category_value() in intl/dcigettext.c and how it checks "C" for more details." But this is not how it behaves. How to reproduce: In a Fedora 36 installation: $ /lib64/libc.so.6 --version tells me that I'm using glibc 2.35. $ locale -a | grep ^C C C.utf8 This shows that the C.UTF-8 locale is installed. $ LC_ALL=C.UTF-8 LANGUAGE=fr ls --help shows a help text in French, taken from /usr/share/locale/fr/LC_MESSAGES/coreutils.mo . But the expected output, per the wiki page above, is the English (untranslated) help text. The attached patch fixes it for me, when applied to gettext's libintl library, with an 'ls' binary that links against libintl. I expect this patch will work in the same way from within glibc. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/29777] LANGUAGE interpretation in C.UTF-8 locale is not like in C locale 2022-11-12 1:35 [Bug libc/29777] New: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale bruno at clisp dot org @ 2022-11-12 1:40 ` bruno at clisp dot org 2022-11-12 5:55 ` sam at gentoo dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: bruno at clisp dot org @ 2022-11-12 1:40 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29777 --- Comment #1 from Bruno Haible <bruno at clisp dot org> --- Created attachment 14452 --> https://sourceware.org/bugzilla/attachment.cgi?id=14452&action=edit Fix -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/29777] LANGUAGE interpretation in C.UTF-8 locale is not like in C locale 2022-11-12 1:35 [Bug libc/29777] New: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale bruno at clisp dot org 2022-11-12 1:40 ` [Bug libc/29777] " bruno at clisp dot org @ 2022-11-12 5:55 ` sam at gentoo dot org 2022-11-14 13:01 ` [Bug locale/29777] " fweimer at redhat dot com 2023-09-10 19:28 ` bruno at clisp dot org 3 siblings, 0 replies; 5+ messages in thread From: sam at gentoo dot org @ 2022-11-12 5:55 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29777 Sam James <sam at gentoo dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at gentoo dot org -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug locale/29777] LANGUAGE interpretation in C.UTF-8 locale is not like in C locale 2022-11-12 1:35 [Bug libc/29777] New: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale bruno at clisp dot org 2022-11-12 1:40 ` [Bug libc/29777] " bruno at clisp dot org 2022-11-12 5:55 ` sam at gentoo dot org @ 2022-11-14 13:01 ` fweimer at redhat dot com 2023-09-10 19:28 ` bruno at clisp dot org 3 siblings, 0 replies; 5+ messages in thread From: fweimer at redhat dot com @ 2022-11-14 13:01 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29777 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |fweimer at redhat dot com Resolution|--- |DUPLICATE Component|libc |locale --- Comment #2 from Florian Weimer <fweimer at redhat dot com> --- Would you please post the fix to libc-alpha? It's probably the best fix we have for now. Please reference the older bug 16621 in the commit message. Thanks. *** This bug has been marked as a duplicate of bug 16621 *** -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug locale/29777] LANGUAGE interpretation in C.UTF-8 locale is not like in C locale 2022-11-12 1:35 [Bug libc/29777] New: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale bruno at clisp dot org ` (2 preceding siblings ...) 2022-11-14 13:01 ` [Bug locale/29777] " fweimer at redhat dot com @ 2023-09-10 19:28 ` bruno at clisp dot org 3 siblings, 0 replies; 5+ messages in thread From: bruno at clisp dot org @ 2023-09-10 19:28 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=29777 --- Comment #3 from Bruno Haible <bruno at clisp dot org> --- The fix was posted to https://sourceware.org/pipermail/libc-alpha/2022-November/143432.html But it was incomplete. Part 2 has been posted to https://sourceware.org/pipermail/libc-alpha/2023-September/151463.html -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-09-10 19:28 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-12 1:35 [Bug libc/29777] New: LANGUAGE interpretation in C.UTF-8 locale is not like in C locale bruno at clisp dot org 2022-11-12 1:40 ` [Bug libc/29777] " bruno at clisp dot org 2022-11-12 5:55 ` sam at gentoo dot org 2022-11-14 13:01 ` [Bug locale/29777] " fweimer at redhat dot com 2023-09-10 19:28 ` bruno at clisp dot org
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).