Discussion:
Can CVS process 16 bin characters?
codeguy
2012-02-21 04:22:25 UTC
Permalink
I have an application (Windows) which writes XML in 16 bit characters
(Unicode?). I have several of the files under CVS source control. CVS
sees the files as binary and does the obvious wrong thing with them.

Is CVS 16 bit aware and is there something I can do to change it to
handle these unicode files as text ...or should I just take my lumps or
whatever?

It's not the end of the world. The files are archived properly. I just
don't like it taking up all that space...
Arthur Barrett
2012-02-23 00:24:11 UTC
Permalink
CVSNT forked from CVS many years ago and contains several extensions to
CVS 1.x including versioning Unicode files, eg:
http://march-hare.com/library/cvsnt/Substitution-modes.html

Eg:
cvs add -k+u filename.txt
cvs ci -m "new unicode file" filename.txt
type filename.txt >> filename.txt
cvs ci -m "new unicode rev" filename.txt
cvs diff -r 1.1 filename.txt

Files marked with they 'u' keyword substitution will be checked in/out
in UCS-2 (or UTF-16) encoding and internally stored as UTF-8 by the
server.

Note: this newsgroup is for CVS 1.x issues, for CVSNT (CVS 2.x) please
contact March Hare Software.

Regards,


Arthur
-----Original Message-----
org] On Behalf Of codeguy
Sent: Tuesday, 21 February 2012 3:22 PM
To: cvs-user-list
Subject: Can CVS process 16 bin characters?
I have an application (Windows) which writes XML in 16 bit characters
(Unicode?). I have several of the files under CVS source
control. CVS
sees the files as binary and does the obvious wrong thing with them.
Is CVS 16 bit aware and is there something I can do to change it to
handle these unicode files as text ...or should I just take
my lumps or
whatever?
It's not the end of the world. The files are archived
properly. I just
don't like it taking up all that space...
Loading...