Commit 4da2b960 by Paolo Carlini Committed by Paolo Carlini

fstream.tcc (underflow): Minor tweaks in preparation for libstdc++/13217.

2003-11-29  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/fstream.tcc (underflow): Minor tweaks in
	preparation for libstdc++/13217.

From-SVN: r74038
parent d71a8c3b
2003-11-29 Paolo Carlini <pcarlini@suse.de> 2003-11-29 Paolo Carlini <pcarlini@suse.de>
* include/bits/fstream.tcc (underflow): Minor tweaks in
preparation for libstdc++/13217.
2003-11-29 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
Tweak for a few small problems (fix timings, use VERIFY..) Tweak for a few small problems (fix timings, use VERIFY..)
......
...@@ -286,7 +286,7 @@ namespace std ...@@ -286,7 +286,7 @@ namespace std
__rlen = 1; __rlen = 1;
} }
while (!__got_eof && __ilen == 0); while (__ilen == 0 && !__got_eof);
} }
if (__ilen > 0) if (__ilen > 0)
...@@ -307,7 +307,7 @@ namespace std ...@@ -307,7 +307,7 @@ namespace std
if (__r == codecvt_base::partial) if (__r == codecvt_base::partial)
__throw_ios_failure("incomplete character in file"); __throw_ios_failure("incomplete character in file");
} }
else if (__r == codecvt_base::error) else
__throw_ios_failure("invalid byte sequence in file"); __throw_ios_failure("invalid byte sequence in file");
} }
return __ret; return __ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment