This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: libstdc++/9024: Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)
- From: Pétur Runólfsson <peturr02 at ru dot is>
- To: "Paolo Carlini" <pcarlini at unitus dot it>,<gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<paolo at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>
- Cc: "bkoz" <bkoz at redhat dot com>
- Date: Mon, 3 Mar 2003 10:38:22 -0000
- Subject: RE: libstdc++/9024: Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)
> A memo: while working on a fix for libstdc++/9423 (quite easy
> by itself),
> finally seems obvious how to fix 9024: in _M_underflow_common add a
> separate case for !__testget && !__testinit, which simply calls
> _M_file.xsgetn(&__c, 1) and returns __ret =
> traits_type::to_int_type(__c).
Does this work when codecvt::encoding() != 1 ?
Petur