This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
C or C++ "C" locale in numpunct facet
- From: Andrey Tsyvarev <tsyvarev at ispras dot ru>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 11 Dec 2008 17:49:06 +0300
- Subject: C or C++ "C" locale in numpunct facet
- Reply-to: Andrey Tsyvarev <tsyvarev at ispras dot ru>
Hello,
I have a question about the meaning of one fragment of the
standard, namely 22.2.3.1, p1:
The instantiations required in Table 51 (22.1.1.1.1), namely
numpunct<wchar_t> and numpunct<char>, provide classic "C" numeric formats, i.e. they contain
information equivalent to that contained in the "C" locale or their wide character counterparts as if obtained
by a call to widen.
Does 'classic "C"' mean "C" ("POSIX") locale in C or C++ sense?
In other words, does this phrase mean C-locale with name "C", or its C++
variant, which may be a simple wrapper around C-locale "C" ("POSIX"), but,
generally speaking, may differ from it (the standard does not forbid this explicitly)?
--
Andrey Tsyvarev
Linux Verification Center, ISPRAS
web: http://www.linuxtesting.org
e-mail: tsyvarev@ispras.ru