delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/17/00:24:27

X-Spam-Check-By: sourceware.org
From: Mark Hessling <m DOT hessling AT qut DOT edu DOT au>
Subject: Re: sed: 4.1.5 breaks libtool generation
To: cygwin AT cygwin DOT com
Reply-To: M DOT Hessling AT qut DOT edu DOT au
X-Mailer: Mirapoint Webmail Direct 3.7.3a-GA
MIME-Version: 1.0
Message-Id: <20060617142400.CEF67313@mail-msgstore01.qut.edu.au>
Date: Sat, 17 Jun 2006 14:24:00 +1000 (EST)
X-Junkmail-Whitelist: YES (by domain whitelist at mail-router01.qut.edu.au)
X-IsSubscribed: yes
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

I've just found the above titled thread; the problem I am also encountering.

>Actually, what you describe is clear enough, but since CRLF handling
>isn't done by the Linux version of sed either, you would have the same
>problem on Linux.  The question here is how did this file get created
>with CRLF in the first place?

In my case, which I wouldn't think is not that unusual is as follows.

I have several cross-platform projects managed in a CVS repository.  Several of them are built with different Win32 compilers on the same Windows XP machine.
So my direcory tree looks something like:

projects
Regina
  vc
  bcc
  cygwin

The indents are to represent subdirectories. ie projects/Regina/vc, projects/Regina/cygwin, etc.
All the source is in projects/Regina in DOS CRLF format; that's the way CVS retrieves it from the repository.
To build Regina with cygwin, I "cd projects/Regina/cygwin" and run "../configure".
With sed 4.1.5, config.h and other files that are generated by the configure script are not updated properly, due to the fact that CRLF does not terminate the lines in the respective input files. So each time I build Regina under cygwin, I have to convert each of the *.in files to LF linends. Then I have to remember to convert them back to CRLF in case I change them and check them back into CVS.

With sed 4.1.4 CRLF as an end of line was recognised correctly.

Given the fact that cygwin runs on a machine where the native linend is CRLF, having a major component not recognise CRLF as a linend when handling text files is, AFAIAC, a major problem.

Cheers, Mark 
--------------------------------------------------------------
Mark Hessling http://www.rexx.org/
Author of THE, Rexx/SQL, Rexx/cURL, Rexx/DW, Rexx/curses, etc..
Project Manager of ooRexx
Maintainer of Regina
Use Rexx ? Join the Rexx Language Association: http://www.rexxla.org/
Google Earth: 27d43'43.10"S,153d02'20.03"E

--
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