[Top][All Lists]

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

Re: CTRL-M and CTRL-J characters in files

From: Steve deRosier
Subject: Re: CTRL-M and CTRL-J characters in files
Date: Wed, 24 Mar 2004 12:01:05 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428

The line ending "conversion" happens with every (relevant) command that cvs 
does.  Checkouts, commits, updates, exports, etc.  Different OSes use different line 
endings on text files.  CVS deals with text files, and so handles this very nicely. (but, 
see the earlier comment about the -kb flags)

- Steve

prolist wrote:
But, isn't that option only about "checkouts", what about check-ins???? I
can't locate any poption specific to that.


----- Original Message -----
From: "Steve deRosier" <address@hidden>
To: "prolist" <address@hidden>
Cc: <address@hidden>
Sent: Thursday, March 25, 2004 1:01 AM
Subject: Re: CTRL-M and CTRL-J characters in files

The CVS client automatically handles the differences between Windows and

UNIX line endings by converting the files when you do the checkout or update
(or commit, or...).  So, as unintuitive as it sounds, uncheck this option.
Then you'll get the Windows line endings without those being imported into
the repository.  To cleanup your current problem, I'd sugest have your Linux
guys check out the files, run them through dos2unix until the files are
cleaned up, check them in, and then you need to do an update or checkout
without that box checked.

- Steve

prolist wrote:

I uses Windows 2000 machine and use Jcreator LE for my Java code. When I


adding files to CVS using WinCVS client, somehow other memebers of team
using Linux machines are getting ^M^J in their files. Why is it


and moreover how can I get rid of this automatically while checking-in


checking-out fiiles.

There is a settings in WinCVS preferences Global tab which has a


"Checkout text files with the Unix LF (0xa)" and I already have this
checkbox checked.

What should I do to avoid this problem?


Info-cvs mailing list

Info-cvs mailing list

reply via email to

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