delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/19/08:35:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <494BA2DB.5000101@byu.net>
Date: Fri, 19 Dec 2008 06:34:19 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Rationale for line-ending recommendation?
References: <877i5wlwc3 DOT fsf AT mcbain DOT luannocracy DOT com>
In-Reply-To: <877i5wlwc3.fsf@mcbain.luannocracy.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

By the way, the program 'd2u' is your friend.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklLotsACgkQ84KuGfSFAYBA8ACfVW6Bqratd5xz+1MpmjRXqC5E
FiAAniRnZeK7tsDtjm2fr2ppBziUu8q3
=U9Hx
-----END PGP SIGNATURE-----

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