X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 19 Dec 2008 10:40:38 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Rationale for line-ending recommendation? Message-ID: <20081219154038.GA4467@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <877i5wlwc3 DOT fsf AT mcbain DOT luannocracy DOT com> <494BA2DB DOT 5000101 AT byu DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <494BA2DB.5000101@byu.net> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Fri, Dec 19, 2008 at 06:34:19AM -0700, Eric Blake wrote: >According to David Abrahams on 12/18/2008 7:42 PM: >>Can anyone explain why the installer began recommending using *nix line >>ending conventions? > >Because Unix line endings work out of the box with more programs, and >because it is faster, and because it gets a lot more testing. And >mainly because doing it globally is wrong - text mode mounts are useful >for a subset of directories, but not all directories. In fact, the 1.7 >setup.exe removes that option altogether, so that you have to >explicitly select text mode for the directories where it will be useful >to you by changing your /etc/fstab. > >>DOS-compatible endings have always "just worked" for me and I've heard >>of lots of problems doing it the now-recommended way. > >Usually it's the other way around - people have problems when using >CR-LF line endings with applications that expect LF line endings; it is >that case where mounting that particular directory as text mode helps >things out. Using a binary mount instead of a text mount means that >you don't create problematic files in the first place. And, strangely enough, some of the problems were even mentioned by someone who apparently likes CRLF line endings. This came up on IRC in the same way too. "I don't see why they don't use CRLF line endings." "Me too! It makes no sense!" "I know! They only seem to affect XYZ." "I know! And ABC too." "You're right! And apparently QWERTY doesn't work either." "Exactly! So it's a mystery why they don't just make it the default. I never have any problems." cgf -- 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/