Bug 26715 - (doc) decimal_point
Summary: (doc) decimal_point
Status: RESOLVED MOVED
Alias: None
Product: glibc
Classification: Unclassified
Component: locale (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-07 17:19 UTC by Hugo van der Sanden
Modified: 2020-10-09 08:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo van der Sanden 2020-10-07 17:19:10 UTC
In the section for LC_NUMERIC, locale(5) says:

  decimal_point
    followed by the string that will be used as the decimal delim-
    iter when formatting numeric quantities.

.. without constraint on what the string may include. It appears this is actually constrained by processors to be a single character, as at https://code.woboq.org/userspace/glibc/locale/programs/ld-numeric.c.html#229

It is not clear if that is part of the spec: if so, I think this should be made explicit in the man page; if not, it is probably still worth noting that some applications (such as localedef) require it.

I have not checked, but it seems likely that thousands_sep has the same constraint, and would need similar treatment.

Initially reported for Ubuntu at https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1898902, they recommended I re-post upstream.
Comment 1 Florian Weimer 2020-10-09 08:42:06 UTC
The manual pages are maintained by the Linux man-pages project.  I submitted a patch: https://lore.kernel.org/linux-man/87zh4vdc7d.fsf@oldenburg2.str.redhat.com/T/