[cvsnt] .dat binary files corrupted

Tony Hoyle tmh at nodomain.org
Sat Feb 7 11:14:40 GMT 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.


Drew F. Sousa wrote:
> We need to add our sample test data files as binary files to ensure that
> their contents are the same on Unix and Windows platforms.
> 
> It is not a problem to add a text file as binary. cvs add -kb 270-ex1.dat
> cvs commit -m "" 270-ex1.dat However, when it is checked out, it has its
> 0xd0xa sequence changed to 0xd0xd0xa.  This may result in it not getting
> recocognized by a parser schema.
> 
That sounds like you're using a -k option on the checkout, and 
overriding the binary-ness.

eg.

cvs add -kb foo.txt
cvs commit -m "" foo.txt
cvs update -kkv foo.txt

Will produce what you're seeing (which is actually correct, if not 
particularly useful, behaviour).

Tony




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