gcc/libstdc++-v3/testsuite
Paolo Carlini 817fe804cf re PR libstdc++/12791 (_M_extract_num returns a wrong __beg in case of error)
2003-12-03  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12791
	* include/bits/locale_facets.tcc (time_get::_M_extract_num):
	Rewrite, stop the parsing as soon as a digit cannot possibly
	lead to a final number within the bounds; otherwise, simplify,
	avoiding __ctype.is() and atoi().
	* testsuite/22_locale/time_get/get_date/char/12791.cc: New.
	* testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.

	* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
	Minor tweak: a 4-digit integer cannot be bigger than 9999.

	* testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
	type-correct wchar_t string literals.
	* testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
	* testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
	* testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
	* testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.

From-SVN: r74222
2003-12-03 09:26:03 +00:00
..
17_intro
18_support
19_diagnostics
20_util re PR libstdc++/10378 ([library DR 402] cannot add object with inplace new into STL collections) 2003-12-01 15:34:07 +00:00
21_strings re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
22_locale re PR libstdc++/12791 (_M_extract_num returns a wrong __beg in case of error) 2003-12-03 09:26:03 +00:00
23_containers debug.html: Users are allowed to specialize in namespace __gnu_debug... 2003-11-14 00:15:00 +00:00
24_iterators streambuf_iterator.h (ostreambuf_iterator): Remove non-standard throw specs. 2003-11-24 21:02:39 +00:00
25_algorithms [multiple changes] 2003-11-11 20:09:16 +00:00
26_numerics
27_io basic_ios.h (basic_ios::setstate): Revert. 2003-12-02 02:48:51 +00:00
backward
config
data
demangle re PR libstdc++/12947 (Demangler bug) 2003-11-12 02:18:37 +00:00
ext
lib libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin. 2003-11-19 05:51:18 +01:00
libstdc++-dg libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin. 2003-11-19 05:51:18 +01:00
performance codecvt_members.cc (codecvt::do_length): Rewrite, using both mbsnrtowcs and mbrtowc in a loop... 2003-11-25 21:41:28 +00:00
thread
abi_check.cc
Makefile.am
Makefile.in
printnow.c
testsuite_allocator.cc
testsuite_allocator.h
testsuite_character.h re PR libstdc++/12790 (basic_filebuf doesn't handle stateful encodings) 2003-11-04 05:27:41 +00:00
testsuite_hooks.cc re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
testsuite_hooks.h re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
testsuite_io.h basic_ios.h (basic_ios::setstate): Revert. 2003-12-02 02:48:51 +00:00
testsuite_performance.h