From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E08253847825; Fri, 18 Jun 2021 14:29:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E08253847825 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug locale/27996] New: setlocale should fail if the required gconv module is missing Date: Fri, 18 Jun 2021 14:29:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: locale X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2021 14:29:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27996 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=3Dlv_LV locale LANG=3D LC_CTYPE=3D"lv_LV" LC_NUMERIC=3D"lv_LV" LC_TIME=3D"lv_LV" LC_COLLATE=3D"lv_LV" LC_MONETARY=3D"lv_LV" LC_MESSAGES=3D"lv_LV" LC_PAPER=3D"lv_LV" LC_NAME=3D"lv_LV" LC_ADDRESS=3D"lv_LV" LC_TELEPHONE=3D"lv_LV" LC_MEASUREMENT=3D"lv_LV" LC_IDENTIFICATION=3D"lv_LV" LC_ALL=3Dlv_LV The locale uses a somewhat unusual charset: # LC_ALL=3Dlv_LV locale -k charmap charmap=3D"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=3D1973663#c11 --=20 You are receiving this mail because: You are on the CC list for the bug.=