delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/12/03/15:32:41

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
To: Christopher Faylor <cgf AT cygnus DOT com>, 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019