[cvsnt] .dat binary files corrupted
tmh at nodomain.org
Sat Feb 7 11:14:40 GMT 2004
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.
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).
More information about the cvsnt