You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Antoine Pitrou <so...@pitrou.net> on 2007/08/06 12:55:48 UTC

[bug] "svn log" can output invalid XML

Hi,

I've found that SVN can output some invalid XML with the log command. It
happens when e.g. a commit message contains control characters. Those
control characters are valid UTF-8 but are not allowed by the XML spec
(XML only allows control characters 0x9, 0xA and 0xD : see
http://www.w3.org/TR/REC-xml/#charsets ).

This is a concrete example from an existing repository:

svn log --xml -r 1722 svn://exaile.org/usr/local/svn/exaile/trunk | xmllint -

The only solution I can think of is to completely strip those control
characters when an XML output is desired.

Regards

Antoine.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org