Some details on the named locale problem

Paolo Carlini pcarlini@unitus.it
Mon Jan 28 04:19:00 GMT 2002


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.






More information about the Libstdc++ mailing list