delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/11/19:18:57

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
From: "Ian Puleston" <ipuleston AT tutsys DOT com>
To: "Cygwin" <cygwin AT cygwin DOT com>
Subject: RE: Perl bug with DOS file line endings?
Date: Thu, 11 Jan 2001 16:11:32 -0800
Message-ID: <BKEPJOHOPEADOFCGNACCMEDGCMAA.ipuleston@tutsys.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <BKEPJOHOPEADOFCGNACCOEDFCMAA.ipuleston@tutsys.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

I've discovered that problem this doesn't happen if I specify the default
file format to be Unix when I install perl. However, specifying that on a
system that's using only DOS format files would seem somewhat
counter-intuitive?

I suspect that this is actually a bug and doing the above simply avoids it.

Ian

> I wrote:
>
> Perl 5.6.1-1 seems to get confused as to whether its processing a DOS or
> Unix format file, depending on what shell it is run under. I'm using it in
> Windows 2000 to process a DOS format source file with line endings 0D0A
> (\r\n):
>
> When it is run directly from a DOS command prompt it works as expected and
> produces an output file with line endings 0D0A.
>
> When it is run from either bash or make initiated from a DOS
> command prompt,
> then it produces an output file with line endings 0D0D0A
> (\r\r\n). It seems
> that in this case it thinks that it is processing a Unix file,
> and has added
> a 0D to change from the Unix 0A line ending to the DOS 0D0A.
>
> I'm using CygWin make 3.79-3 and bash 2.04-5.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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