gcc/libstdc++-v3/testsuite/22_locale
Paolo Carlini 101c5bc507 re PR libstdc++/20914 (Another grouping trouble)
2005-04-17  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/20914
	* include/bits/locale_facets.tcc (__int_to_char(_CharT*, _ValueT,
	const _CharT*, ios_base::fmtflags, bool)): Don't deal with numeric
	base or sign here, instead...
	(_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT)): ... here,
	after adding the grouping. This fixes the bug and also allows to
	clean-up the code dealing with integer types.
	(_M_group_int(const char*, size_t, _CharT, ios_base&, _CharT*,
	_CharT*, int&)): Simplify, remove bits dealing with numeric base.
	(__int_to_char(_CharT*, unsigned long, const _CharT*,
	ios_base::fmtflags), __int_to_char(_CharT*, unsigned long long,
	const _CharT*, ios_base::fmtflags)): Remove hackish fix for
	libstdc++/15565.
	(__int_to_char(_CharT*, long, const _CharT*, ios_base::fmtflags),
	__int_to_char(_CharT*, long long, const _CharT*, ios_base::fmtflags)):
	Simplify, don't pass the sign.
	(_M_insert_float(_OutIter, ios_base&, _CharT, char, _ValueT)):
	Deal with a sign at the beginning of __cs; robustify the grouping
	check.
	* testsuite/22_locale/num_put/put/char/20914.cc: New.
	* testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.

From-SVN: r98271
2005-04-17 14:30:37 +00:00
..
codecvt locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
codecvt_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
collate 2.cc, [...]: XFAIL on *-*-hpux11.23. 2005-03-05 01:44:43 +00:00
collate_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
ctype_base locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +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 12658_thread-1.cc: Don't XFAIL on GNU/Linux. 2005-03-10 11:08:38 +11:00
messages 1.cc: Remove junk. 2004-04-09 10:18:33 +00:00
messages_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
money_get re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
money_put 1.cc: Use proper wchar_t type for the fill argument; minor formatting tweaks. 2004-08-21 11:56:46 +00:00
moneypunct locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
moneypunct_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
num_get 1.cc: Remove junk. 2004-04-09 10:18:33 +00:00
num_put re PR libstdc++/20914 (Another grouping trouble) 2005-04-17 14:30:37 +00:00
numpunct pod_char_traits.h (__gnu_cxx::character): Add char_type. 2005-04-15 02:06:26 +00:00
numpunct_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
time_get 1.cc: In the checks use... 2004-11-19 21:48:21 +00:00
time_put 2.cc: Fix typo. 2004-11-27 09:34:06 +00:00