[Bug manual/31206] New: Incorrect value for C-locale (mon_)grouping

oscar.gustafsson at gmail dot com sourceware-bugzilla@sourceware.org
Tue Jan 2 13:44:46 GMT 2024


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.


More information about the Glibc-bugs mailing list