🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #416

Re: libg++ cout can't be piped

#416
From: bothner
Date: Mon, 04 Jan 1993 15:00
25 lines
1032 bytes
The following patch should fix the problem.

	--Per Bothner
Cygnus Support     bothner@cygnus.com

===================================================================
RCS file: /rel/cvsfiles/devo/libg++/iostream/stdiostream.C,v
retrieving revision 1.7
diff -c -r1.7 stdiostream.C
*** 1.7	1992/12/22 22:42:54
--- stdiostream.C	1992/12/31 02:47:51
***************
*** 87,94 ****
--- 87,97 ----
      if (!(xflags() & _S_NO_WRITES))
  	if (fflush(_file))
  	    return EOF;
+ #if 0
+ 	// This loses when writing to a pipe.
      if (fseek(_file, 0, SEEK_CUR) == EOF)
  	return EOF;
+ #endif
      return 0;
  }
  
Technical Details
Message-ID: <9301050700.AA23979@rtl.cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner
From: bothner@cygnus.com
Subject: Re: libg++ cout can't be piped
Message-ID: <9301050700.AA23979@rtl.cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 4 Jan 1993 15:00:12 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 26