Summary: | locale confusion with time/collate categories | ||
---|---|---|---|
Product: | gcc | Reporter: | Jim Jowdy <jjowdy> |
Component: | libstdc++ | Assignee: | Paolo Carlini <paolo.carlini> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | ||
Version: | 4.1.1 | ||
Target Milestone: | 4.2.0 | ||
Host: | i386-redhat-linux | Target: | i386-redhat-linux |
Build: | i386-redhat-linux | Known to work: | |
Known to fail: | Last reconfirmed: | 2006-09-25 19:46:23 | |
Attachments: | Test case to reproduce the problem |
Description
Jim Jowdy
2006-09-25 18:54:24 UTC
Created attachment 12324 [details]
Test case to reproduce the problem
Working on it. Subject: Bug 29217 Author: paolo Date: Wed Sep 27 07:08:13 2006 New Revision: 117247 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117247 Log: 2006-09-27 Paolo Carlini <pcarlini@suse.de> PR libstdc++/29217 * src/localename.cc (locale::_Impl::_M_replace_categories)): Compensate for the inconsistent numerical encodings of the collate and time categories vs the corresponding names. * testsuite/22_locale/locale/cons/29217.cc: New. * testsuite/22_locale/locale/cons/2.cc: Enable and split out the few ENC_TRAITS bits to... * testsuite/22_locale/locale/cons/unicode/1.cc... here. Added: trunk/libstdc++-v3/testsuite/22_locale/locale/cons/29217.cc trunk/libstdc++-v3/testsuite/22_locale/locale/cons/unicode/ trunk/libstdc++-v3/testsuite/22_locale/locale/cons/unicode/1.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/src/localename.cc trunk/libstdc++-v3/testsuite/22_locale/locale/cons/2.cc Fixed for 4.2.0. Subject: Bug 29217 Author: paolo Date: Thu Sep 28 14:40:12 2006 New Revision: 117282 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117282 Log: 2006-09-28 Paolo Carlini <pcarlini@suse.de> PR libstdc++/29217 * include/bits/locale_classes.h: Fix (swap) numerical encodings of time and collate categories. * src/locale_init.cc: Consistently reorder locale::_Impl::_S_id_time and _S_id_collate. * src/locale.cc: Tweak. Modified: branches/libstdcxx_so_7-branch/libstdc++-v3/include/bits/locale_classes.h branches/libstdcxx_so_7-branch/libstdc++-v3/src/locale.cc branches/libstdcxx_so_7-branch/libstdc++-v3/src/locale_init.cc Subject: Bug 29217 Author: paolo Date: Thu Sep 28 14:40:46 2006 New Revision: 117283 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117283 Log: 2006-09-28 Paolo Carlini <pcarlini@suse.de> PR libstdc++/29217 * include/bits/locale_classes.h: Fix (swap) numerical encodings of time and collate categories. * src/locale_init.cc: Consistently reorder locale::_Impl::_S_id_time and _S_id_collate. * src/locale.cc: Tweak. Modified: branches/libstdcxx_so_7-branch/libstdc++-v3/ChangeLog.libstdcxx_so_7-branch |