Some details on the named locale problem
Ulrich Drepper
drepper@redhat.com
Mon Jan 28 16:50:00 GMT 2002
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 `------------------------
More information about the Libstdc++
mailing list