Thread View: gnu.g++.lib.bug
1 messages
1 total messages
Started by bothner
Mon, 04 Jan 1993 15:00
Re: libg++ cout can't be piped
Author: bothner
Date: Mon, 04 Jan 1993 15:00
Date: Mon, 04 Jan 1993 15:00
25 lines
1032 bytes
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;
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads