Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <40714FE2.9090204@cs.york.ac.uk>
Date: Mon, 05 Apr 2004 13:24:02 +0100
From: Chris Jefferson <caj@cs.york.ac.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.
References: <DFEHICGKJPBGEDPLIGKIKENPFCAA.ken.thompson@gtri.gatech.edu>
In-Reply-To: <DFEHICGKJPBGEDPLIGKIKENPFCAA.ken.thompson@gtri.gatech.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Ken Thompson wrote:

>I don't think the behavior should be changed. d2u stands for dos to unix
>which means \r\n to \n.  Why would one expect a dos to unix utility to
>convert mixed line terminator files.  If you need such a utility, then add
>one but don't take a utility that does dos to unix and try to turn it in to
>"anything" to unix or if you do then change the name. Just my 2 cents worth
>
>  
>
And it would agree that it should be changed. I would expect dos to unix 
to turn \r\n into \n, ignoring the fact it may or may not wander into a 
\n first.

I'd also like to express interest in having this changed. I knocked up 
my own program to do this, because particularily in cygwin I find it 
easy to accidentally edit a file in a few different editors and end up 
with a mess of line endings which need to be all syncronised to one 
system (of course I could just learn to not mess my files up ^_^ )

Chris



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

