From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen) Subject: Re: B20 patch: CR handling in fhandler_console 3 Dec 1998 15:32:41 -0800 Message-ID: <366719BC.583E0FFA.cygnus.cygwin32.developers@cityweb.de> References: <3665D672 DOT A1722461 DOT cygnus DOT cygwin32 DOT developers AT cityweb DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Christopher Faylor , cygwin32-developers AT cygnus DOT com Christopher Faylor wrote: > > On Thu, Dec 03, 1998 at 12:26:02PM +0100, Corinna Vinschen wrote: > >- The next if clause after the mentioned one is the code, which > > kills CR if LF follows. So, in this case, the mentioned one is > > unnecessary. > > When copied_chars > 1! Or did you want to index before the beginning > of the buf array. I haven't affirmed this. The strucked code handles a special case - one single CR in buffer - which shouldn't happen in case of line mode, but unfortunately happens. Strange but true: It seems to be useless, because read() does the right things. So it looks alike. Corinna