re PR libstdc++/9182 (basic_filebuf<> does not report errors in codecvt<>::out)
authorPaolo Carlini <pcarlini@unitus.it>
Fri, 7 Mar 2003 22:06:28 +0000 (23:06 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 7 Mar 2003 22:06:28 +0000 (22:06 +0000)
commit1deba98bd23b18dbaf4da0e42ee3d5d6c48fe758
tree3af598b249b9920d009caed9e0797f741dabbc00
parent50aac998d41d566b358f8421c5e55188435422d7
re PR libstdc++/9182 (basic_filebuf<> does not report errors in codecvt<>::out)

2003-03-07  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/9182
* include/bits/fstream.tcc (_M_really_overflow): Check
for _M_convert_to_external possible failures.
* include/std/std_fstream.h (sync): Check _M_really_overflow
return value and return -1 in case of failure.
* testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.

2003-03-07  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/9826
* include/bits/istream.tcc (operator>>(_CharT*),
operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
* testsuite/27_io/stringstream.cc (test02): Add.

* include/bits/istream.tcc (operator>>(_CharT*)):
Assign a char_type to *__s.

From-SVN: r63953
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/include/std/std_fstream.h
libstdc++-v3/testsuite/27_io/filebuf_virtuals.cc
libstdc++-v3/testsuite/27_io/stringstream.cc