Article View: gnu.g++.lib.bug
Article #459Re: 2.3: bogus failstate in getline
From: bothner
Date: Tue, 26 Jan 1993 02:26
Date: Tue, 26 Jan 1993 02:26
17 lines
1100 bytes
1100 bytes
> As the following program indicates, when getline is called with a > buffersize of n and n-1 characters are put in the buffer, the state of > the istream is changed to fail. This is inappropriate and contrary to > the behavior of Sun C++. I'm following the ANSI draft (revision 4): Sets: failbit if it stops because it has extracted len-1 characters. A comments says: Setting failbit in these circumstances is a change from the AT&T library, but seems sensible. ... If you disagree, don't argue with me; argue with Jerry Schwarz (jss@lucid.com). --Per Bothner Cygnus Support bothner@cygnus.com
Technical Details
Message-ID:
<9301260134.AA00990@cygnus.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothnerReferences:
<9301240857.AA27362@cs.rice.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner From: bothner@cygnus.com Newsgroups: gnu.g++.lib.bug Subject: Re: 2.3: bogus failstate in getline Date: 25 Jan 1993 21:26:21 -0500 Organization: GNUs Not Usenet Lines: 18 Sender: daemon@cis.ohio-state.edu Approved: bug-lib-g++@prep.ai.mit.edu Distribution: gnu Message-ID: <9301260134.AA00990@cygnus.com> References: <9301240857.AA27362@cs.rice.edu>