[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[bug] "svn log" can output invalid XML

From: Antoine Pitrou <solipsis_at_pitrou.net>
Date: 2007-08-06 14:55:48 CEST

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
Received on Mon Aug 6 14:54:04 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.