delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/28/08:59:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 28 Sep 2000 08:57:00 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: chet AT po DOT CWRU DOT Edu
Cc: cygwin AT sources DOT redhat DOT com
Subject: Re: Has CR/LF and cat problem with textutils-2.0 been solved?
Message-ID: <20000928085700.B1022@DP>
References: <1000927193632 DOT AA99354 DOT SM AT nike DOT ins DOT cwru DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.2.4i
In-Reply-To: <1000927193632.AA99354.SM@nike.ins.cwru.edu>; from chet@nike.ins.cwru.edu on Wed, Sep 27, 2000 at 03:36:32PM -0400
Organization: Dot Hill Systems Corp.

Chet,

On Wed, Sep 27, 2000 at 03:36:32PM -0400, Chet Ramey wrote:
> Well, geez, how hard can it be?  Here's the change I just made to
> subst.c:read_comsub().  Take a look -- I'm really dragging today and
> probably made an error.
> 
> *** subst.c~	Tue Sep 26 15:19:40 2000
> --- subst.c	Wed Sep 27 15:38:09 2000
> ***************
> *** 3361,3364 ****
> --- 3361,3372 ----
>   
>         istring[istring_index++] = c;
> + 
> + #if defined (__CYGWIN__)
> +       if (c == '\n' && istring_index > 1 && istring[istring_index - 2] == '\r')
> + 	{
> + 	  istring_index--;
> + 	  istring_index[-1] = '\n';
> + 	}
> + #endif
>       }

Shouldn't the following line:

    istring_index[-1] = '\n';

be changed to:

    istring[istring_index - 1] = '\n';

instead?

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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