info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: line endings in text files and -kb


From: Spiro Trikaliotis
Subject: Re: line endings in text files and -kb
Date: Thu, 11 Sep 2008 10:35:05 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hello,

* On Thu, Sep 11, 2008 at 06:19:07PM +1000 Arthur Barrett wrote:
 
> If you are using the CVSNT client (which I assume you are since it's
> converting the line endings - the cygwin client wouldn't do that)

Unfortunately, you are wrong here about the cygwin client.

CVS (correctly) opens text files as text files. ;) Thus, any conversion
that is done from the underlying environment will be available for CVS.

Thus: If you installed Cygwin with LF line endings (which is default),
CVS will not convert the line endings to Windows format. However, if you
installed Cygwin with CR/LF line endings, CVS will handle and convert
the line endings to/from Windows ones correctly.

Additionally note that the setting of the line endings in Cygwin is just
a default one. With using the mount command, one can set this property
on a per-directory basis.

BTW: This CVS behaviour is different from SVN, which always opens files
     in binary and tries to handle the line endings itself, which is
     very problematic on Cygwin, as SVN does not know about the mount
     options, and just treats anything as based on LF line endings on
     Cygwin. But I digress...

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]