delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/18/17:31:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 18 Jun 2004 14:31:39 -0700
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Carriage Returns
Message-ID: <20040618213139.GA2912@efn.org>
References: <7D036BD3216A084DB1BD9D62BCEAF29049A436 AT mail1irv DOT inside DOT istor DOT com>
Mime-Version: 1.0
In-Reply-To: <7D036BD3216A084DB1BD9D62BCEAF29049A436@mail1irv.inside.istor.com>
User-Agent: Mutt/1.4.1i
Organization: bs"d
X-IsSubscribed: yes

On Fri, Jun 18, 2004 at 01:17:07PM -0700, Chris Carlson wrote:
> As defined in C, there is a concept of "end-of-line character."  I was
> under the impression that Perl understood this concept, too.  It just so
> happens that M$ doesn't have one end-of-line character, but a pair of
> them.  In some scripting languages, the carriage-return/line-feed pair
> is considered one end-of-line character and removing one removes both.
> 
> It would be logical to assume that a function that removes the
> end-of-line character on a M$ box would remove both the carriage-return
> and the line-feed.  I think this is what Mr. Kramer is trying to say.

Perl converts native line endings to "\n" for text files, based on
platform.  The problem is that cygwin doesn't have one true line
ending.  IIRC, Gerrit went through a lot of conniptions getting it to
work well everywhere to the degree possible, but there remain cases
where you need to use the PERLIO=crlf environment variable, or take
other action (there are many ways) to get it working ok.

If the original poster really thinks something needs to change, he'd
better include cygcheck -s -r -v output as an attachment, and describe
explicitly the case that is a problem.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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