info-cvs
[Top][All Lists]
Advanced

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

RE: CVS and end of line characters


From: Jim.Hyslop
Subject: RE: CVS and end of line characters
Date: Wed, 26 May 2004 11:59:46 -0400

Jo Vermeulen wrote:
> I'm experiencing some weird problems when using keyword 
> expansion in CVS
> (things like $Date$, $Author$, ...). I created my files with 
> Vim, but when
> I added keyword expainsion and submitted them to CVS, they 
> were all f*cked
> up.
> 
> In Vim every line ends with a ^W character. In Emacs it is 
> displayed as a
> ^M character. On Windows every line seems to have an extra 
> carriage return.
Some rules when dealing with CVS:

- Always modify files on the same platform you used to check them out. IOW,
don't check out under Linux and edit the file under Windows. Be careful with
Cygwin - it can be either a Linux-style line ending or a Windows-style line
ending, depending on how you installed it.

- Make sure your editor is configured to use the line-ending for the
platform you used to check the files out. IOW, make sure your editor inserts
CRLF under Windows, and plain LF under *NIX.

-- 
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (http://www.leitch.com)
Columnist, C/C++ Users Journal (http://www.cuj.com/experts)




reply via email to

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