info-cvs
[Top][All Lists]
Advanced

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

Re: WINCVS and MSVC problem


From: Larry Jones
Subject: Re: WINCVS and MSVC problem
Date: Fri, 18 Jan 2002 16:35:02 -0500 (EST)

=?ISO-8859-15?Q?J=F6rg_R=FCppel?= writes:
> 
> I have some sourcefiles in my Linux cvs repository. When I check them out 
> with WinCVS through pserver and try to open them with MSVC, MSVC states 
> that it has detected lines ending on CR. In fact, the lines in the 
> checkedout file end up with CR CR LF, all of them. The original file on 
> another computer only contains CR LF. When I copy this file directly to the 
> MSVC system, it works without problems. Could someone tell me where the 
> additional CR comes from and how I can get rid of it?

That's what happens when you check in files that end with <CR><LF> on
a system where text files end in just <LF> (e.g., checking in Windows
files on Unix).  CVS thinks the <CR> is part of the line rather than
part of the terminator.  Then when you check the files out on a system
that does use <CR><LF> terminators, you get the <CR> that's part of the
line followed by the <CR><LF> line terminator.  The way to avoid this
problem is to never edit or check in a file on a different system than
the one it was checked out (or, for new files, created) on.  And never
share working directories between different systems.

-Larry Jones

I don't need to improve!  Everyone ELSE does! -- Calvin



reply via email to

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