home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / lib / bug / 804 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner
  2. From: bothner@cygnus.com
  3. Newsgroups: gnu.g++.lib.bug
  4. Subject: Re: 2.3: bogus failstate in getline
  5. Date: 25 Jan 1993 21:26:21 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 18
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-lib-g++@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301260134.AA00990@cygnus.com>
  12. References: <9301240857.AA27362@cs.rice.edu>
  13.  
  14. > As the following program indicates, when getline is called with a
  15. > buffersize of n and n-1 characters are put in the buffer, the state of
  16. > the istream is changed to fail.  This is inappropriate and contrary to
  17. > the behavior of Sun C++.
  18.  
  19. I'm following the ANSI draft (revision 4):
  20.  
  21.     Sets: failbit if it stops because it has extracted len-1 characters.
  22.  
  23. A comments says:
  24.     Setting failbit in these circumstances is a change from the AT&T
  25.     library, but seems sensible. ...
  26.  
  27. If you disagree, don't argue with me; argue with Jerry Schwarz (jss@lucid.com).
  28.  
  29.     --Per Bothner
  30. Cygnus Support     bothner@cygnus.com
  31.  
  32.