home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / lib / bug / 744 < prev    next >
Encoding:
Text File  |  1993-01-06  |  996 b   |  39 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner
  3. From: bothner@cygnus.com
  4. Subject: Re: libg++ cout can't be piped
  5. Message-ID: <9301050700.AA23979@rtl.cygnus.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 4 Jan 1993 15:00:12 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 26
  12.  
  13. The following patch should fix the problem.
  14.  
  15.     --Per Bothner
  16. Cygnus Support     bothner@cygnus.com
  17.  
  18. ===================================================================
  19. RCS file: /rel/cvsfiles/devo/libg++/iostream/stdiostream.C,v
  20. retrieving revision 1.7
  21. diff -c -r1.7 stdiostream.C
  22. *** 1.7    1992/12/22 22:42:54
  23. --- stdiostream.C    1992/12/31 02:47:51
  24. ***************
  25. *** 87,94 ****
  26. --- 87,97 ----
  27.       if (!(xflags() & _S_NO_WRITES))
  28.       if (fflush(_file))
  29.           return EOF;
  30. + #if 0
  31. +     // This loses when writing to a pipe.
  32.       if (fseek(_file, 0, SEEK_CUR) == EOF)
  33.       return EOF;
  34. + #endif
  35.       return 0;
  36.   }
  37.   
  38.  
  39.