gcc/libstdc++-v3/src
Benjamin Kosnik 4b9aaf6379 Audit for LANG independence.
2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>

	Audit for LANG independence.
	* include/bits/localefwd.h: Tweaks.
	* include/bits/locale_facets.tcc (money_get::do_get(long double)):
	Use __convert_to_v.
	(time_get::do_get_year): Same.
	(__convert_from_v): Add.
	(num_put::_M_convert_float): Use.
	(num_put::_M_convert_int): Same.
	(money_put::do_put): Same.

	* src/locale-inst.cc: Add instantiations for __convert_from_v.
	* config/locale/time_members_gnu.cc: Cleanup setlocale usage.
	* config/locale/time_members_generic.cc:
	* config/locale/messages_members_gnu.cc: Same.
	* config/locale/messages_members_gnu.h: Same.

	* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
	* testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
	* testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
	* testsuite/22_locale/collate_members_char.cc (test02): New.
	* testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
	* testsuite/22_locale/ctype_members_char.cc (test03): New.
	* testsuite/22_locale/messages_members_char.cc (test02): New.
	* testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
	* testsuite/22_locale/moneypunct_members_char.cc (test02): New.
	* testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
	* testsuite/22_locale/money_get_members_char.cc (test04): New.
	* testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
	* testsuite/22_locale/money_put_members_char.cc (test04): New.
	* testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
	* testsuite/22_locale/numpunct_members_char.cc (test02): New.
	* testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
	* testsuite/22_locale/time_put_members_char.cc (test03): New.
	* testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
	* testsuite/22_locale/time_get_members_char.cc (test07): New.
	* testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
	* testsuite/22_locale/num_get_members_char.cc (test03): New.
	* testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
	* testsuite/22_locale/num_put_members_char.cc (test03): New.

	* testsuite/22_locale/time_get_members_char.cc: Fixups for global
	locale issues.
	* testsuite/22_locale/time_get_members_char.cc: Same.

2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/5280
	* include/bits/localefwd.h: Tweak comments.
	* include/bits/locale_facets.h (__convert_to_v): Add.
	* include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
	(num_get::do_get(float)): Same.
	(num_get::do_get(long double)): Same.
	(num_get::do_get(bool)): Same.
	(num_get::do_get(long)): Same.
	(num_get::do_get(long long)): Same.
	(num_get::do_get(unsigned int)): Same.
	(num_get::do_get(unsigned short)): Same.
	(num_get::do_get(unsigned long)): Same.
	(num_get::do_get(unsigned long long)): Same.
	* config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
	* config/locale/c_locale_generic.cc: Same.

From-SVN: r49108
2002-01-22 23:09:04 +00:00
..
bitset.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
cmath.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
codecvt.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
complex_io.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
concept-inst.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
ext-inst.cc hash_map: Move into __gnu_cxx, tweak, add using declarations. 2001-12-31 10:22:00 +00:00
functexcept.cc Make -fno-exceptions work. 2001-10-24 02:37:56 +00:00
globals.cc globals.cc: Remove __GTHREADS guard. 2001-12-07 23:13:23 +00:00
ios.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
limits.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
locale-inst.cc Audit for LANG independence. 2002-01-22 23:09:04 +00:00
locale.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
localename.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
Makefile.am Clean up initialization and simplfy caching of underlying "C" locale objects. 2001-12-15 07:05:04 +00:00
Makefile.in Clean up initialization and simplfy caching of underlying "C" locale objects. 2001-12-15 07:05:04 +00:00
misc-inst.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stdexcept.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stl-inst.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
string-inst.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
strstream.cc algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
valarray-inst.cc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
vterminate.cc vterminate.cc (__verbose_terminate_handler): Add leading underscores. 2001-11-23 12:36:43 -05:00
wstring-inst.cc