public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug manual/31206] New: Incorrect value for C-locale (mon_)grouping
@ 2024-01-02 13:44 oscar.gustafsson at gmail dot com
2024-01-02 14:11 ` [Bug manual/31206] " schwab@linux-m68k.org
0 siblings, 1 reply; 2+ messages in thread
From: oscar.gustafsson at gmail dot com @ 2024-01-02 13:44 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31206
Bug ID: 31206
Summary: Incorrect value for C-locale (mon_)grouping
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: manual
Assignee: unassigned at sourceware dot org
Reporter: oscar.gustafsson at gmail dot com
CC: mtk.manpages at gmail dot com
Target Milestone: ---
The manual states:
"In the standard ‘C’ locale, both grouping and mon_grouping have a value of "".
This value specifies no grouping at all."
However, the value is -1/CHAR_MAX
https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/locales/C;h=fc0614e551519c6b162379bf672b428dba21c12a;hb=refs/heads/master#l73
Not a big deal, but when trying to understand how it actually works, I stumbled
upon this. Also, it is not mentioned earlier that an empty string should give
this behavior, rather it says that when finding a string termination character,
it should use the previous char.
Location of the incorrect statement:
https://sourceware.org/git/?p=glibc.git;a=blob;f=manual/locale.texi;h=f6afa5dc44a2a016df5c529dc8d2491b689f4b37;hb=HEAD#l702
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug manual/31206] Incorrect value for C-locale (mon_)grouping
2024-01-02 13:44 [Bug manual/31206] New: Incorrect value for C-locale (mon_)grouping oscar.gustafsson at gmail dot com
@ 2024-01-02 14:11 ` schwab@linux-m68k.org
0 siblings, 0 replies; 2+ messages in thread
From: schwab@linux-m68k.org @ 2024-01-02 14:11 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31206
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |NOTABUG
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
There are two different representations of the same value:
- the locale source file uses (mon_)grouping -1
- the localeconv function sets the (mon_)grouping members to ""
See 7.3.3 LC_MONETARY and 7.3.4 LC_NUMERIC in the POSIX.1 standard.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-02 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 13:44 [Bug manual/31206] New: Incorrect value for C-locale (mon_)grouping oscar.gustafsson at gmail dot com
2024-01-02 14:11 ` [Bug manual/31206] " schwab@linux-m68k.org
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).