libstdc++/9024: Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)

Pétur Runólfsson peturr02@ru.is
Mon Mar 3 10:46:00 GMT 2003


The following reply was made to PR libstdc++/9024; it has been noted by GNATS.

From: =?iso-8859-1?Q?P=E9tur_Run=F3lfsson?= <peturr02@ru.is>
To: "Paolo Carlini" <pcarlini@unitus.it>,
	<gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<paolo@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>
Cc: "bkoz" <bkoz@redhat.com>
Subject: RE: libstdc++/9024: Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)
Date: Mon, 3 Mar 2003 10:38:22 -0000

 > A memo: while working on a fix for libstdc++/9423 (quite easy=20
 > 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 =3D=20
 > traits_type::to_int_type(__c).
 
 Does this work when codecvt::encoding() !=3D 1 ?
 
 Petur



More information about the Gcc-prs mailing list