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

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).