This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: DOS textfile mode & files with "0a" line endings: CVS creates "0d0a"
- 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"
- From: Li-Kai Liu <news at likai dot net>
- Date: Fri, 12 Oct 2001 01:21:46 -0400
- References: <86wv21frk7.fsf@earthlink.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/