This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]