Mail Archives: cygwin-developers/1998/12/03/15:32:41
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 -