To apply the patch, save the text below in a file (say `fix'),
*** gcc-2.95/libio/strstream.cc Thu Aug 21 15:58:22 1997 --- gcc-2.95/libio/strstream.cc Tue May 9 14:17:57 2000 *************** *** 68,74 **** int strstreambuf::underflow() { ! return _IO_str_underflow(this); } --- 68,79 ---- int strstreambuf::underflow() { ! int c = _IO_str_underflow(this); ! ! if( c == EOF ) { ! _flags |= _IO_EOF_SEEN; ! } ! return c; }