mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
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
This commit is contained in:
parent
d71a8c3b20
commit
4da2b96035
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -286,7 +286,7 @@ namespace std
|
||||
|
||||
__rlen = 1;
|
||||
}
|
||||
while (!__got_eof && __ilen == 0);
|
||||
while (__ilen == 0 && !__got_eof);
|
||||
}
|
||||
|
||||
if (__ilen > 0)
|
||||
@ -307,7 +307,7 @@ namespace std
|
||||
if (__r == codecvt_base::partial)
|
||||
__throw_ios_failure("incomplete character in file");
|
||||
}
|
||||
else if (__r == codecvt_base::error)
|
||||
else
|
||||
__throw_ios_failure("invalid byte sequence in file");
|
||||
}
|
||||
return __ret;
|
||||
|
Loading…
Reference in New Issue
Block a user