[Bug libstdc++/38411] [4.4 Regression] Revision 142439 caused 22_locale/locale/cons/7.cc execution test
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 5 09:17:00 GMT 2008
------- Comment #11 from paolo dot carlini at oracle dot com 2008-12-05 09:16 -------
(In reply to comment #9)
> Forcing "," thousands separator when none should be used is very weird.
Is the same "C" locale has. We only want consistency, see 38368.
Does
> C++ standard mandate that behavior? "" means thousands shouldn't be separated
> by any separator. In most cases such locales also have grouping 0;0 or -1, but
> there
> are buggy?
I suppose so, because we have a comment in the code (resulting from feedback me
and / or Benjamin got from glibc people clearly saying that '\0' implies no
grouping. We always worked under this hypothesis.
locales, e.g. bg_BG, that specify empty thousands_sep, yet have
> grouping 3;3. For empty thousands_sep glibc just forces no grouping:
> if ((wide && thousands_sepwc == L'\0')
> || (! wide && *thousands_sep == '\0'))
> grouping = NULL;
Ok...
>
> BTW, thousands_sep is a multibyte string, it can be multiple bytes
This is just a C++ standard issue, unfortunately...
Paolo.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38411
More information about the Gcc-bugs
mailing list