locale_facets.tcc (num_get::_M_extract_float): When __found_sci becomes true stop...
authorPaolo Carlini <pcarlini@suse.de>
Fri, 19 Dec 2003 09:35:24 +0000 (09:35 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 19 Dec 2003 09:35:24 +0000 (09:35 +0000)
commit1b4513069a1ba56abff09f27977da3d10ffcd7f3
tree85a14266411b4a664f0e48d4aec9dde4fee5d49f
parented8d88031c395a0029393904e44afe077d7a5b93
locale_facets.tcc (num_get::_M_extract_float): When __found_sci becomes true stop eating thousands separators and the decimal...

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

* include/bits/locale_facets.tcc (num_get::_M_extract_float):
When __found_sci becomes true stop eating thousands separators
and the decimal radix separator.
* testsuite/22_locale/num_get/get/char/9.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.

* config/locale/generic/c_locale.cc (__convert_to_v): Don't
check that *__sanity == '\0': parsing may stop earlier, still
be successful.
* config/locale/gnu/c_locale.cc: Likewise.
* testsuite/22_locale/num_get/get/char/10.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
Tweak in one place accordingly.

* testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
* testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.

From-SVN: r74826
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/c_locale.cc
libstdc++-v3/config/locale/gnu/c_locale.cc
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/num_get/get/char/10.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/char/9.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/10.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/9.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc