[Patch] Reorder the categories
Paolo Carlini
pcarlini@unitus.it
Thu Nov 28 00:38:00 GMT 2002
Hi,
this is something I noticed while working on that strtok issue:
currently we are constructing composite locale strings with the
first six categories in this order (the last six are ok):
LC_CTYPE
LC_NUMERIC
LC_COLLATE <---
LC_TIME <---
LC_MONETARY
LC_MESSAGES
Whereas a setlocale(LC_ALL, "") returns them in *this* order:
LC_CTYPE
LC_NUMERIC
LC_TIME <---
LC_COLLATE <---
LC_MONETARY
LC_MESSAGES
This seems not ok, since one of the main reason for the Posix
names patch is the interoperability between C and C++, as
emphasized in particular by Roland at the time.
I have trivially fixed this as follows, tested x86-linux.
Ok?
////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_cats
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20021128/f253f46f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_cats
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20021128/f253f46f/attachment-0001.ksh>
More information about the Libstdc++
mailing list