This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Some details on the named locale problem
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Cc: ncm at cantrip dot org
- Date: Mon, 28 Jan 2002 13:18:33 +0100
- Subject: Some details on the named locale problem
Ok,
thanks to Nathan invitation, I studied a bit of C++ locale and I can report some
details on the thousands_sep() and grouping() values reported by v3 for the
named locale which are currently giving problems (i.e., it_IT or fr_FR).
In that case (which is giving problems):
thousands_sep() == \000
grouping() == \377\377
grouping() seems to me anomalous: if I understand well some documentation I
have, only the last number can be CHAR_MAX (indicating that there is no grouping
anymore), *not* both.
For comparison:
---------------
In the C case (which works):
thousands_sep() == \54 (",")
grouping() == "" (i.e., empty string)
In the de_DE case (which works):
thousands_sep() == \56 (".")
grouping() == "\003\003"
In the en_GB case (which works):
thousands_sep() == \54 (",")
grouping() == "\003\003"
Cheers,
Paolo.