delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/12/01:22:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BC67DEA.70208@likai.net>
Date: Fri, 12 Oct 2001 01:21:46 -0400
From: Li-Kai Liu <news AT likai DOT 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 AT earthlink DOT net>, cygwin AT cygwin DOT com
Subject: Re: DOS textfile mode & files with "0a" line endings: CVS creates "0d0a"
References: <86wv21frk7 DOT fsf AT earthlink DOT net>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019