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]

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.





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