This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38411] [4.4 Regression] Revision 142439 caused 22_locale/locale/cons/7.cc execution test
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2008 09:38:51 -0000
- Subject: [Bug libstdc++/38411] [4.4 Regression] Revision 142439 caused 22_locale/locale/cons/7.cc execution test
- References: <bug-38411-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from jakub at gcc dot gnu dot org 2008-12-05 09:38 -------
I see you already disable grouping if it is empty, good.
If _M_thousands_sep must be a single _CharT, then for <char> I guess you should
transliterate it if the string is longer than one character.
Either by using glibc transliteration (more generic, but slower), or by
hardcoding
the few multibyte strings that are used in glibc locales ATM.
That's just <U00A0> in current glibc (transliterate to ' ') and in some older
libcs was also that <U2002> (also to ' '). Maybe change everything longer than
one byte to ' ' ;).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38411