aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2003-12-03 09:18:28 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2003-12-03 09:18:28 +0000
commit3259561c4c46afb921e593baeebdc0a955063473 (patch)
tree6b2133520095c88dcebbddb70318a43ff390faa1 /gcc
parentc6a25d3a3dff96bf920d34b31faba6fdb5ff9323 (diff)
downloadgcc-3259561c4c46afb921e593baeebdc0a955063473.zip
gcc-3259561c4c46afb921e593baeebdc0a955063473.tar.gz
gcc-3259561c4c46afb921e593baeebdc0a955063473.tar.bz2
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: r74220
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions