home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.lib.bug
- Path: 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
-
- 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;
- }
-
-
-