This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/14071] locale::global doesn't always call setlocale


------- 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


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