]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/26701 (std::time_get parses only 2 digits of year, in en_GB locale.)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 7 Jan 2010 00:22:51 +0000 (00:22 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 7 Jan 2010 00:22:51 +0000 (00:22 +0000)
commit2e8e6a99ee156e8cd15b5e4b9a0eeaa49e2a970b
tree4c72dfc64a8a21dead648354eaf800ea69e50865
parent83c3322912062f7254f542cf9334569e270caace
re PR libstdc++/26701 (std::time_get parses only 2 digits of year, in en_GB locale.)

2010-01-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/26701
* include/bits/locale_facets_nonio.tcc (time_get<>::_M_extract_num):
Encode short two digits over four parsings to negative numbers.
(time_get<>::_M_extract_via_format): Adjust, accept both two digits
and four digits for both 'y' and 'Y'.
(time_get<>::do_get_year): Call time_get<>::_M_extract_num.
* doc/xml/manual/prerequisites.xml: Add en_GB.
* testsuite/lib/libstdc++.exp: Adjust
* testsuite/22_locale/time_get/get_date/char/26701.cc: New.
* testsuite/22_locale/time_get/get_date/wchar_t/26701.cc: Likewise.

From-SVN: r155685
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/prerequisites.xml
libstdc++-v3/include/bits/locale_facets_nonio.tcc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/26701.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/26701.cc [new file with mode: 0644]
libstdc++-v3/testsuite/lib/libstdc++.exp