Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Thu, 8 Sep 2005 09:21:54 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: file not working on executables? Message-ID: <20050908072154.GX5555@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20050907074223 DOT GA24333 AT calimero DOT vinschen DOT de> <20050908000030 DOT 9499B83C9A AT pessard DOT research DOT canon DOT com DOT au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050908000030.9499B83C9A@pessard.research.canon.com.au> User-Agent: Mutt/1.4.2i On Sep 8 10:00, Luke Kendall wrote: > On 7 Sep, Corinna Vinschen wrote: > > Oh well, why are you still using textmode? We should drop this choice from > > setup.exe entirely. > > The logic went: > > 1) Under Windows, most of the programs we use are native Windows ones, > so we choose DOS style line endings during Cygwin install. > 2) I assume that Unix text processing programs like sed, awk, troff, > etc. prefer to see LF rather than CR-LF. > > I've just now re-read > http://cygwin.com/cygwin-ug-net/using-textbinary.html. (I can't begin > to imagine how much pain this CR/LF issue must cause you guys!) > > Did you give the advice above because basically all the Cygwin programs > that treat lines as records, now open the file in text mode; and all > other Cygwin programs open files in binary mode? (Including "file.exe", > now, thank you!) You should not mount the whole Cygwin tree in textmode, it will always give trouble when you expect it the least. Just mount home dirs or something as textmode, but even then refrain from it as much as possible. There are tools out there to convert line endings, for instance d2u and u2d. I bet, if you count the cases where the conversion is necessary, you will be surprised how _seldom_ it's necessary. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/