]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/39168 (Incorrect interpretation of CHAR_MAX inside grouping string...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 15 Feb 2009 16:47:57 +0000 (16:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 15 Feb 2009 16:47:57 +0000 (16:47 +0000)
commitbbcac3becb8dcc1cf5a8d65926ce15b296f4367c
treeeb15a978460c1aaecb4876c6b96497177e6ac71a
parent68c9ab451b8163597dee5ed2f7ee23859b9b453a
re PR libstdc++/39168 (Incorrect interpretation of CHAR_MAX inside grouping string in monetary and numeric facets.)

2009-02-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/39168
* src/locale_facets.cc (__verify_grouping(const char*, size_t,
const string&)): Also check that the value != CHAR_MAX.
* include/bits/locale_facets.tcc (__numpunct_cache<>::
_M_cache(const locale&), __add_grouping(_CharT*, _CharT,
const char*, size_t, const _CharT*, const _CharT*)): Likewise.
* include/bits/locale_facets_nonio.tcc (__moneypunct_cache<>::
_M_cache(const locale&)): Likewise.
* testsuite/22_locale/money_put/put/wchar_t/39168.cc: New.
* testsuite/22_locale/money_put/put/char/39168.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/39168.cc: Likewise.
* testsuite/22_locale/money_get/get/char/39168.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/39168.cc: Likewise.
* testsuite/22_locale/num_get/get/char/39168.cc: Likewise.

From-SVN: r144190
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/include/bits/locale_facets_nonio.tcc
libstdc++-v3/src/locale_facets.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/39168.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_put/put/char/39168.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/39168.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/char/39168.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/39168.cc [new file with mode: 0644]