This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Some details on the named locale problem
Nathan Myers <ncm-nospam@cantrip.org> writes:
> In the C++ implementation it suffices to take the first character
> from the string found, and if that's NUL, then so be it.
And this alone is broken. There is no requirement is the locale
definition (POSIX and ISO C) that the thousand separator isn't a
multibyte character. This is explicitly accounted for in the ISO C
locale model by using a string. It's not possible for the C++
interface to represent this information.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------