[cvsnt] Blank lines and strange characters in text files

Carl Zmola carl at membersonlysoftware.com
Sat Jul 31 00:45:26 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Jeff Harmon wrote:

>We have a problem where there are some text files that end up with blank
>lines (every other line) and strange block looking characters.  The
>files were committed using cygwin instead of cvsnt, but they are DOS
>formatted files.  When I open the file that was checked out using cvsnt
>in cygwin the files show ^M characters at the end of every line.  If I
>check the file out using cygwin cvs, the file is fine in any editor I
>use.  
> 
>Does anyone have any experience with something like this?  Is there a
>cvsnt option I can use to make this problem go away?
>  
>
This is a CRLF conversion problem.   I rename the cvs that comes with 
cygwin to prevent this sort of thing.

Unix uses CR (or ^J or 0x0A) as a line ending
Mac uses LF ( or ^M or 0x0D) as a line ending
Dos-windos uses CRLF.

What can happen is you get a CRCRLF line ending or a CRLFLF line 
ending.  You can do this with some cygwin tool, but
I usually write a c program to do the conversion. 

Wordpad seems to convert single lf's to crlf. so editing and saving in 
wordpad might help a little.
You might also try checking out with cygwin and commiting from cvsnt.   
(reversing the process that messed them up).
Or if the changes are minor, you could just revert to the old document. 

- 
---------------------------------------------------
-  Carl Zmola
-  Carl at MembersOnlySoftware.com
-  202-328-1785 x 103
---------------------------------------------------




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook