public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug locale/27996] New: setlocale should fail if the required gconv module is missing
@ 2021-06-18 14:29 fweimer at redhat dot com
2021-06-18 15:04 ` [Bug locale/27996] " victor.stinner at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2021-06-18 14:29 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27996
Bug ID: 27996
Summary: setlocale should fail if the required gconv module is
missing
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: locale
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
Target Milestone: ---
setlocale succeeds:
$ LC_ALL=lv_LV locale
LANG=
LC_CTYPE="lv_LV"
LC_NUMERIC="lv_LV"
LC_TIME="lv_LV"
LC_COLLATE="lv_LV"
LC_MONETARY="lv_LV"
LC_MESSAGES="lv_LV"
LC_PAPER="lv_LV"
LC_NAME="lv_LV"
LC_ADDRESS="lv_LV"
LC_TELEPHONE="lv_LV"
LC_MEASUREMENT="lv_LV"
LC_IDENTIFICATION="lv_LV"
LC_ALL=lv_LV
The locale uses a somewhat unusual charset:
# LC_ALL=lv_LV locale -k charmap
charmap="ISO-8859-13"
But the charset is not installed:
# iconv -f UTF-8 -t ISO-8859-13
iconv: failed to start conversion processing
So mbstowcs fails to work.
Pointed out by Victor Stinner here:
https://bugzilla.redhat.com/show_bug.cgi?id=1973663#c11
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug locale/27996] setlocale should fail if the required gconv module is missing
2021-06-18 14:29 [Bug locale/27996] New: setlocale should fail if the required gconv module is missing fweimer at redhat dot com
@ 2021-06-18 15:04 ` victor.stinner at gmail dot com
2021-06-18 19:49 ` carlos at redhat dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: victor.stinner at gmail dot com @ 2021-06-18 15:04 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27996
Victor Stinner <victor.stinner at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |victor.stinner at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug locale/27996] setlocale should fail if the required gconv module is missing
2021-06-18 14:29 [Bug locale/27996] New: setlocale should fail if the required gconv module is missing fweimer at redhat dot com
2021-06-18 15:04 ` [Bug locale/27996] " victor.stinner at gmail dot com
@ 2021-06-18 19:49 ` carlos at redhat dot com
2021-06-21 2:29 ` siddhesh at sourceware dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: carlos at redhat dot com @ 2021-06-18 19:49 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27996
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
I agree setlocale should fail in this case.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug locale/27996] setlocale should fail if the required gconv module is missing
2021-06-18 14:29 [Bug locale/27996] New: setlocale should fail if the required gconv module is missing fweimer at redhat dot com
2021-06-18 15:04 ` [Bug locale/27996] " victor.stinner at gmail dot com
2021-06-18 19:49 ` carlos at redhat dot com
@ 2021-06-21 2:29 ` siddhesh at sourceware dot org
2021-06-30 8:57 ` siddhesh at sourceware dot org
2022-02-21 11:20 ` fweimer at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: siddhesh at sourceware dot org @ 2021-06-21 2:29 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27996
Siddhesh Poyarekar <siddhesh at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |siddhesh at sourceware dot org
CC| |siddhesh at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug locale/27996] setlocale should fail if the required gconv module is missing
2021-06-18 14:29 [Bug locale/27996] New: setlocale should fail if the required gconv module is missing fweimer at redhat dot com
` (2 preceding siblings ...)
2021-06-21 2:29 ` siddhesh at sourceware dot org
@ 2021-06-30 8:57 ` siddhesh at sourceware dot org
2022-02-21 11:20 ` fweimer at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: siddhesh at sourceware dot org @ 2021-06-30 8:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27996
--- Comment #2 from Siddhesh Poyarekar <siddhesh at sourceware dot org> ---
Calling locale that way does not actually call setlocale(). I've got a test
with a patch which does; sending soon.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug locale/27996] setlocale should fail if the required gconv module is missing
2021-06-18 14:29 [Bug locale/27996] New: setlocale should fail if the required gconv module is missing fweimer at redhat dot com
` (3 preceding siblings ...)
2021-06-30 8:57 ` siddhesh at sourceware dot org
@ 2022-02-21 11:20 ` fweimer at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2022-02-21 11:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27996
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
CC| |fweimer at redhat dot com
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
It may be prudent to turn ISO-8859-1 and ISO-8859-15 into internal converts,
too, so that we don't encounter additional overhead due to early converter
loading for these (somewhat common) character sets.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-02-21 11:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 14:29 [Bug locale/27996] New: setlocale should fail if the required gconv module is missing fweimer at redhat dot com
2021-06-18 15:04 ` [Bug locale/27996] " victor.stinner at gmail dot com
2021-06-18 19:49 ` carlos at redhat dot com
2021-06-21 2:29 ` siddhesh at sourceware dot org
2021-06-30 8:57 ` siddhesh at sourceware dot org
2022-02-21 11:20 ` fweimer 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).