This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in endl (libio)
- To: jlquinn at us dot ibm dot com
- Subject: Re: Bug in endl (libio)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 23 May 2000 22:58:14 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <852568E4.00771CAB.00@D51MTA03.pok.ibm.com>you write:
> In libio/iostream.cc, endl() should check if the stream can accept chars
> before writing its eol. I found this because I was forcibly setting a
> stream to eof in order to create a null stream that swallows chars (long
> story - NT has a less than stellar iostream). In that situation, eols
> still get written.
>
> This is true in 2.95.2 as well as the latest cvs according to the web
> pages.
>
> Here's a patch:
Based on Uli's comments, I've installed this patch.
jeff