[cvsnt] CVSNT server tries to write non UTF-8 characters in fileattr.xml
Erik Larsson
catacombae at gmail.com
Fri Dec 26 12:40:53 GMT 2008
Hi,
I'm using CVSNT Server hosted on Windows (XP, Vista), and recently I've
been getting errors when using the server with non-ASCII characters
related to the fileattr.xml files. An example commit error message:
----------
RCS file: /ROOT/CVS Documents/Personligt/Troféer/Lösning för den som
vill sk...pdf,v
done
XML error at line 0: xmlEncodeEntitiesReentrant : char out of range
Checking in Lösning för den som vill sk...pdf;
/ROOT/CVS Documents/Personligt/Troféer/Lösning för den som vill
sk...pdf,v <-- Lösning för den som vill sk...pdf
initial revision: 1.1
done
XML error at line 0: output conversion failed due to conv error, bytes
0xF6 0x72 0x20 0x64
XML error at line 0: encoder error
Unable to create D:/Documents and Settings/Erik/cvsnt_repository/CVS
Documents/Personligt/Troféer/CVS/fileattr.xml
cvs server: cannot write /ROOT/CVS
Documents/Personligt/Troféer/CVS/fileattr.xml: No such file or directory
----------
Basically, CVSNT generates incorrect XML files, encoding characters in
ISO-8859-1 (maybe cp1252) where they should be encoded in UTF-8, thus
validating the XML format.
This error goes away when I switch the server to Unicode mode, but I
have clients that don't support UTF-8 file names in CVS so I can't run
it that way.
This has never been a problem earlier... I have been using non-ASCII
(Latin1-style) characters in file names earlier without problems. I
think these problems started when I upgraded from 2.5.03 to 2.5.04 .
Can this be worked around? Is there a fix coming? Latest build from
www.cvsnt.org/archive ( cvsnt-server-2.5.05.3240.msi
<http://www.cvsnt.org/archive/cvsnt-server-2.5.05.3240.msi> ) still
exhibits this issue.
- Erik
More information about the cvsnt
mailing list