------- 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