locale_facets.tcc (num_get::_M_extract_int, [...]): According to 22.2.2.1.2...
authorPaolo Carlini <pcarlini@suse.de>
Mon, 22 Dec 2003 11:00:43 +0000 (11:00 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 22 Dec 2003 11:00:43 +0000 (11:00 +0000)
commita827daa06b2335bb93c09c5a8753725f40a76ef4
tree60a1fed9a0230867f41beb5c113006bf26cde6d8
parent9e62871ee9f5f2ed5ee3c4651ef2123388a82028
locale_facets.tcc (num_get::_M_extract_int, [...]): According to 22.2.2.1.2...

2003-12-22  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_get::_M_extract_int,
num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
first look for decimal_point and thousands_sep, when parsing
sign, leading zeros (and 0, Ox, 0X for integer types) too.
* testsuite/22_locale/num_get/get/char/12.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.

* testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
* testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.

From-SVN: r74932
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/num_get/get/char/11.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/12.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/11.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/12.cc [new file with mode: 0644]