This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Thousands separator "," for the C locale??
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 28 Jan 2002 12:44:37 -0800 (PST)
- Subject: Re: Thousands separator "," for the C locale??
> this is inspired by libstdc++/5499: the testcase submitted as part of it reports
> the comma (",") as the thousands separator for the C locale. On the other hand
> from glibc2.2.5 documentation I understand that the thousands separator is
> *empty* in that case, right?
You are correct that the actual "C" semantics differ from what 14882 deems
"C" semantics. If you look at the parts of the C++ standard, you'll see:
22.2.3.1.2 - numpunct virtual functions [lib.facet.numpunct.virtuals]
string_type do_thousands_sep() const;
-2- Returns: A character for use as the digit group separator. The
required instantiations return ',' or L','.