public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/29217] New: locale confusion with time/collate categories @ 2006-09-25 18:54 jjowdy at levanta dot com 2006-09-25 18:56 ` [Bug libstdc++/29217] " jjowdy at levanta dot com ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: jjowdy at levanta dot com @ 2006-09-25 18:54 UTC (permalink / raw) To: gcc-bugs I'm setting the global locale by taking the current locale (C) and overriding the collate and ctype categories with the en_US.UTF-8 locale: locale::global(locale(locale(),"en_US.UTF-8",locale::collate|locale::ctype)) When I actually view the resulting locale with locale().name() or setlocale(LC_ALL,0), I see the following: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C Note that LC_TIME reports its locale has been overridden and LC_COLLATE does not. --------------------- % gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) -- Summary: locale confusion with time/collate categories Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jjowdy at levanta dot com GCC build triplet: i386-redhat-linux GCC host triplet: i386-redhat-linux GCC target triplet: i386-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com @ 2006-09-25 18:56 ` jjowdy at levanta dot com 2006-09-25 19:46 ` pcarlini at suse dot de ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jjowdy at levanta dot com @ 2006-09-25 18:56 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jjowdy at levanta dot com 2006-09-25 18:55 ------- Created an attachment (id=12324) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12324&action=view) Test case to reproduce the problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com 2006-09-25 18:56 ` [Bug libstdc++/29217] " jjowdy at levanta dot com @ 2006-09-25 19:46 ` pcarlini at suse dot de 2006-09-25 21:58 ` pcarlini at suse dot de ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pcarlini at suse dot de @ 2006-09-25 19:46 UTC (permalink / raw) To: gcc-bugs -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-09-25 19:46:23 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com 2006-09-25 18:56 ` [Bug libstdc++/29217] " jjowdy at levanta dot com 2006-09-25 19:46 ` pcarlini at suse dot de @ 2006-09-25 21:58 ` pcarlini at suse dot de 2006-09-27 7:08 ` paolo at gcc dot gnu dot org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pcarlini at suse dot de @ 2006-09-25 21:58 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pcarlini at suse dot de 2006-09-25 21:58 ------- Working on it. -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com ` (2 preceding siblings ...) 2006-09-25 21:58 ` pcarlini at suse dot de @ 2006-09-27 7:08 ` paolo at gcc dot gnu dot org 2006-09-27 7:39 ` pcarlini at suse dot de ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: paolo at gcc dot gnu dot org @ 2006-09-27 7:08 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from paolo at gcc dot gnu dot org 2006-09-27 07:08 ------- 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 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com ` (3 preceding siblings ...) 2006-09-27 7:08 ` paolo at gcc dot gnu dot org @ 2006-09-27 7:39 ` pcarlini at suse dot de 2006-09-28 14:40 ` paolo at gcc dot gnu dot org 2006-09-28 14:41 ` paolo at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: pcarlini at suse dot de @ 2006-09-27 7:39 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from pcarlini at suse dot de 2006-09-27 07:39 ------- Fixed for 4.2.0. -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com ` (4 preceding siblings ...) 2006-09-27 7:39 ` pcarlini at suse dot de @ 2006-09-28 14:40 ` paolo at gcc dot gnu dot org 2006-09-28 14:41 ` paolo at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: paolo at gcc dot gnu dot org @ 2006-09-28 14:40 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from paolo at gcc dot gnu dot org 2006-09-28 14:40 ------- 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 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/29217] locale confusion with time/collate categories 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com ` (5 preceding siblings ...) 2006-09-28 14:40 ` paolo at gcc dot gnu dot org @ 2006-09-28 14:41 ` paolo at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: paolo at gcc dot gnu dot org @ 2006-09-28 14:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from paolo at gcc dot gnu dot org 2006-09-28 14:40 ------- 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 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29217 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-09-28 14:41 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-09-25 18:54 [Bug libstdc++/29217] New: locale confusion with time/collate categories jjowdy at levanta dot com 2006-09-25 18:56 ` [Bug libstdc++/29217] " jjowdy at levanta dot com 2006-09-25 19:46 ` pcarlini at suse dot de 2006-09-25 21:58 ` pcarlini at suse dot de 2006-09-27 7:08 ` paolo at gcc dot gnu dot org 2006-09-27 7:39 ` pcarlini at suse dot de 2006-09-28 14:40 ` paolo at gcc dot gnu dot org 2006-09-28 14:41 ` paolo at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).