public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug locale/28847] New: Empty mon_decimal_point in LC_MONETARY results in non-empty mon_decimal_point_wc
@ 2022-02-01 16:11 carlos at redhat dot com
  2022-02-01 17:09 ` [Bug locale/28847] " carlos at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: carlos at redhat dot com @ 2022-02-01 16:11 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28847

            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_point
and mon_decimal_point_wc at the same time to the expected defaults.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-04  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 16:11 [Bug locale/28847] New: Empty mon_decimal_point in LC_MONETARY results in non-empty mon_decimal_point_wc carlos at redhat dot com
2022-02-01 17:09 ` [Bug locale/28847] " carlos at redhat dot com
2022-02-04  9:35 ` xry111 at mengyan1223 dot wang
2022-02-04  9:37 ` xry111 at mengyan1223 dot wang

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