diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-12-19 09:35:24 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-12-19 09:35:24 +0000 |
commit | 1b4513069a1ba56abff09f27977da3d10ffcd7f3 (patch) | |
tree | 85a14266411b4a664f0e48d4aec9dde4fee5d49f /libstdc++-v3/testsuite/22_locale/money_get/get/char | |
parent | ed8d88031c395a0029393904e44afe077d7a5b93 (diff) | |
download | gcc-1b4513069a1ba56abff09f27977da3d10ffcd7f3.tar.gz |
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
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/money_get/get/char')
-rw-r--r-- | libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc index 39dca1df909..fd2c1e55c93 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc @@ -100,7 +100,7 @@ void test01() ios_base::iostate err04 = ios_base::goodbit; mon_get.get(is_it04, end, true, iss, err04, result4); VERIFY( result4 == empty ); - VERIFY( err04 == ios_base::failbit | ios_base::eofbit ); + VERIFY( err04 == (ios_base::failbit | ios_base::eofbit) ); iss.str("working for enlightenment and peace in a mad world"); iterator_type is_it05(iss); |