Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3BC67DEA.70208@likai.net>
Date: Fri, 12 Oct 2001 01:21:46 -0400
From: Li-Kai Liu <news@likai.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20010913
X-Accept-Language: en-us
MIME-Version: 1.0
To: "David M. Karr" <dmkarr@earthlink.net>, cygwin@cygwin.com
Subject: Re: DOS textfile mode & files with "0a" line endings: CVS creates "0d0a"
References: <86wv21frk7.fsf@earthlink.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

David M. Karr wrote:

>I have a Cygwin installation (based on 1.3.2).  I run Cygwin-XEmacs.  My mounts
>are text mode.  When I create a new text file and store it, I can use "od -h"
>to show that the lines end with "0a", and not "0d0a".  This is fine.
>
that's exactly why: your mounts are in text mode. you should try to 
mount the filesystem in binmode if you want total control over 0a line 
ending or 0d0a line ending. text mode always mingles with line 
separators, whereas binmode leave everything as is. text editors like 
emacs and vim are capable of distinguishing line ending modes and output 
files of either line separator format.

liulk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

