public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14071] New: locale::global doesn't always call setlocale
@ 2004-02-08 13:51 peturr02 at ru dot is
2004-02-08 14:08 ` [Bug libstdc++/14071] " peturr02 at ru dot is
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: peturr02 at ru dot is @ 2004-02-08 13:51 UTC (permalink / raw)
To: gcc-bugs
locale::global(loc) should call setlocale(LC_ALL, loc.name().c_str()) if
loc is a named locale, but it fails to do so if loc is the result of
combining two named locales with the constructor
locale(const locale&, const locale&, locale::category).
--
Summary: locale::global doesn't always call setlocale
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peturr02 at ru dot is
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/14071] locale::global doesn't always call setlocale
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
@ 2004-02-08 14:08 ` peturr02 at ru dot is
2004-02-09 20:38 ` pcarlini at suse dot de
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: peturr02 at ru dot is @ 2004-02-08 14:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-02-08 14:08 -------
Created an attachment (id=5702)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5702&action=view)
Test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/14071] locale::global doesn't always call setlocale
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
2004-02-08 14:08 ` [Bug libstdc++/14071] " peturr02 at ru dot is
@ 2004-02-09 20:38 ` pcarlini at suse dot de
2004-02-09 23:11 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pcarlini at suse dot de @ 2004-02-09 20:38 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-09 20:38:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/14071] locale::global doesn't always call setlocale
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
2004-02-08 14:08 ` [Bug libstdc++/14071] " peturr02 at ru dot is
2004-02-09 20:38 ` pcarlini at suse dot de
@ 2004-02-09 23:11 ` cvs-commit at gcc dot gnu dot org
2004-02-10 10:34 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-09 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-09 23:10 -------
Subject: Bug 14071
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2004-02-09 23:10:47
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: locale_classes.h
libstdc++-v3/src: locale_init.cc
Added files:
libstdc++-v3/testsuite/22_locale/locale/global_locale_objects:
14071.cc
Log message:
2004-02-09 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14071
* src/locale_init.cc (locale::global(const locale&)): Use
locale::name() in order to decide whether calling setlocale.
* testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
* include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
Avoid computing &= unnecessarily.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2319&r2=1.2320
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_classes.h.diff?cvsroot=gcc&r1=1.19&r2=1.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/locale_init.cc.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/14071.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/14071] locale::global doesn't always call setlocale
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
` (2 preceding siblings ...)
2004-02-09 23:11 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-10 10:34 ` cvs-commit at gcc dot gnu dot org
2004-02-10 10:36 ` pcarlini at suse dot de
2004-05-02 18:19 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-10 10:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-10 10:34 -------
Subject: Bug 14071
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: paolo@gcc.gnu.org 2004-02-10 10:34:08
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: locale_classes.h
libstdc++-v3/src: locale_init.cc
Added files:
libstdc++-v3/testsuite/22_locale/locale/global_locale_objects:
14071.cc
Log message:
2004-02-10 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14071
* src/locale_init.cc (locale::global(const locale&)): Use
locale::name() in order to decide whether calling setlocale.
* testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
* include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
Avoid computing &= unnecessarily.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.30&r2=1.2224.2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_classes.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.18&r2=1.18.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/14071.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/locale_init.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.6&r2=1.6.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/14071] locale::global doesn't always call setlocale
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
` (3 preceding siblings ...)
2004-02-10 10:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-10 10:36 ` pcarlini at suse dot de
2004-05-02 18:19 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pcarlini at suse dot de @ 2004-02-10 10:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-02-10 10:36 -------
Fixed for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/14071] locale::global doesn't always call setlocale
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
` (4 preceding siblings ...)
2004-02-10 10:36 ` pcarlini at suse dot de
@ 2004-05-02 18:19 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-02 18:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-02 18:19 -------
Subject: Bug 14071
CVSROOT: /cvs/gcc
Module name: gcc
Branch: hammer-3_3-branch
Changes by: paolo@gcc.gnu.org 2004-05-02 18:19:00
Modified files:
libstdc++-v3 : ChangeLog.hammer
libstdc++-v3/src: locale.cc
Log message:
2004-05-02 Paolo Carlini <pcarlini@suse.de>
* src/locale.cc (locale::operator==): Always avoid constructing
locale::name(), directly compare pairs of _M_names.
2004-05-02 Paolo Carlini <pcarlini@suse.de>
* src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
avoid constructing unnecessarily this->name().
2004-05-02 Paolo Carlini <pcarlini@suse.de>
* src/locale.cc (locale::global(const locale&)): Save
the name in a temporary.
2004-05-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14071
* src/locale.cc (locale::global(const locale&)): Use locale::name()
in order to decide whether calling setlocale.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.hammer.diff?cvsroot=gcc&only_with_tag=hammer-3_3-branch&r1=1.1.2.13&r2=1.1.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/locale.cc.diff?cvsroot=gcc&only_with_tag=hammer-3_3-branch&r1=1.69.2.8&r2=1.69.2.9
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14071
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-05-02 18:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-08 13:51 [Bug libstdc++/14071] New: locale::global doesn't always call setlocale peturr02 at ru dot is
2004-02-08 14:08 ` [Bug libstdc++/14071] " peturr02 at ru dot is
2004-02-09 20:38 ` pcarlini at suse dot de
2004-02-09 23:11 ` cvs-commit at gcc dot gnu dot org
2004-02-10 10:34 ` cvs-commit at gcc dot gnu dot org
2004-02-10 10:36 ` pcarlini at suse dot de
2004-05-02 18:19 ` cvs-commit 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).