info-cvs
[Top][All Lists]
Advanced

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

CVS and end of line characters


From: Jo Vermeulen
Subject: CVS and end of line characters
Date: Wed, 26 May 2004 16:44:50 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

Hello,

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.

For example:

/* Just a plain old comment */
int i = 0;


becomes

in Vim
------

/* Just a plain old comment */^W
int i = 0;^W
^W

in Emacs
--------

/* Just a plain old comment */^M
int i = 0;^M
^M

on Windows (VC++ for example, or SciTE):
-----------

/* Just a plain old comment */

int i = 0;


Why does this happen, and what can I do about it?

The problem does not occur when I commit files edited with Visual C++ or
any other Windows editor. 

Kind regards,

-- 
Jo Vermeulen
Student Computer Science at the tUL
email: address@hidden
www: http://lumumba.luc.ac.be/jo


reply via email to

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