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 locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
18_support locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
19_diagnostics locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
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 locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
27_io basic_ios.h (basic_ios::setstate): Revert. 2003-12-02 02:48:51 +00:00
backward re PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail) 2003-10-12 20:03:18 +00:00
config *.cc: Remove spaces, make sure testcases return zero. 2001-05-12 16:53:08 +00:00
data cin_unget-1.txt: New. 2003-08-26 11:46:22 +00:00
demangle re PR libstdc++/12947 (Demangler bug) 2003-11-12 02:18:37 +00:00
ext locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
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 locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
Makefile.am Makefile.am: Remove trailing whitespace. 2003-08-27 21:29:43 +00:00
Makefile.in Makefile.am: Remove trailing whitespace. 2003-08-27 21:29:43 +00:00
abi_check.cc create_testsuite_files: New file. 2003-07-06 03:14:37 +00:00
printnow.c libstdc++-v3: New directory. 2000-04-21 20:33:34 +00:00
testsuite_allocator.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_allocator.h *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
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 Makefile.am (check-abi): Change libstdc++-v3 to libstdc++. 2003-08-08 15:24:00 +00:00