From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F6793858421; Tue, 1 Feb 2022 16:11:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F6793858421 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug locale/28847] New: Empty mon_decimal_point in LC_MONETARY results in non-empty mon_decimal_point_wc Date: Tue, 01 Feb 2022 16:11:58 +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: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos 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: Tue, 01 Feb 2022 16:11:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28847 Bug ID: 28847 Summary: Empty mon_decimal_point in LC_MONETARY results in non-empty mon_decimal_point_wc Product: glibc Version: 2.35 Status: NEW Severity: normal Priority: P2 Component: locale Assignee: unassigned at sourceware dot org Reporter: carlos at redhat dot com Target Milestone: --- A locale that species an LC_MONETARY with an empty string e.g. "" for mon_decimal_point will be correctly compiled, but the mon_decimal_point_wc = will be set to a default value of "." that doesn't match the source locale. The defect is in ld-monetary.c where we unconditionally set mon_decimal_point_wc if the value is L'\0' which is always the case for an empty string mon_decimal_point. The solution is to set both mon_decimal_poi= nt and mon_decimal_point_wc at the same time to the expected defaults. --=20 You are receiving this mail because: You are on the CC list for the bug.=