8sa1-gcc/libstdc++-v3/testsuite/22_locale
Paolo Carlini 91675f9d25 re PR libstdc++/12352 (Exception safety problems in src/localename.cc)
2003-09-25  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/12352
	* src/localename.cc (locale::_Impl::_Impl(const _Impl&,
	size_t)): Don't leak if memory allocations for _M_facets,
	_M_caches, and _M_names fail.
	(locale::_Impl::_Impl(const char*, size_t)): Ditto.
	(locale::_Impl::_M_replace_categories(const _Impl*,
	category)): Ditto.
	(locale::_Impl::_M_install_facet(const locale::id*,
	const facet*)): Ditto.
	* include/bits/locale_classes.h (locale::locale(const locale&,
	_Facet*)): Don't leak memory.
	* testsuite/22_locale/locale/cons/12352.cc: New, from the PR.

	* src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
	bool)): Qualify with std:: strcpy, tweak.
	* include/bits/locale_classes.h
	(locale::_Impl::_M_check_same_name): Qualify strcmp.

From-SVN: r71808
2003-09-26 00:22:01 +00:00
..
codecvt locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
collate locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
collate_byname locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
ctype ctype_members.cc (ctype<wchar_t>::do_is): Fix. 2003-09-25 16:37:24 +00:00
facet locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
global_templates locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
locale re PR libstdc++/12352 (Exception safety problems in src/localename.cc) 2003-09-26 00:22:01 +00:00
messages locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
messages_byname locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
money_get locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
money_put locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
moneypunct locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
moneypunct_byname locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
num_get locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
num_put locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
numpunct locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
numpunct_byname locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
time_get locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
time_put locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00