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

Re: [BUG REPORT] svn log --xml outputs invalid XML

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-10-01 15:37:30 CEST

Dominique PERETTI wrote:
> I couldn't get why my xml parser died on subversion's log. Here is why :
>
> Any strict xml parser will complain like this :
> "invalid XML character (Unicode: 0x1a) was found in the element content
> of the document."
> or "Unable to load file, possibly invalid UTF-8 contents!"

I can't reproduce this with Subversion r11198 on Linux. I can't find a hex 1A (ctrl-Z) character in the output (see hex dump below), and 'xmllint' only complains like this:

> svn log --xml -r 10416 http://svn.collab.net/repos/svn/trunk | xmllint -
-:7: error: Input is not proper UTF-8, indicate encoding !
<msg>* COMMITTERS: Expand Øyvind Møll's access to include general docs as
                          ^
-:7: error: Bytes: 0xD8 0x79 0x76 0x69
<msg>* COMMITTERS: Expand Øyvind Møll's access to include general docs as
                          ^

What platform are you using (MS Windows?) and what version of Subversion, and what locale?

- Julian

> svn log --xml -r 10416 http://svn.collab.net/repos/svn/trunk | hexdump
00000000 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
00000010 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 75 74 |.0" encoding="ut|
00000020 66 2d 38 22 3f 3e 0a 3c 6c 6f 67 3e 0a 3c 6c 6f |f-8"?>.<log>.<lo|
00000030 67 65 6e 74 72 79 0a 20 20 20 72 65 76 69 73 69 |gentry. revisi|
00000040 6f 6e 3d 22 31 30 34 31 36 22 3e 0a 3c 61 75 74 |on="10416">.<aut|
00000050 68 6f 72 3e 6b 66 6f 67 65 6c 3c 2f 61 75 74 68 |hor>kfogel</auth|
00000060 6f 72 3e 0a 3c 64 61 74 65 3e 32 30 30 34 2d 30 |or>.<date>2004-0|
00000070 37 2d 32 36 54 31 34 3a 30 35 3a 31 34 2e 30 35 |7-26T14:05:14.05|
00000080 34 31 37 34 5a 3c 2f 64 61 74 65 3e 0a 3c 6d 73 |4174Z</date>.<ms|
00000090 67 3e 2a 20 43 4f 4d 4d 49 54 54 45 52 53 3a 20 |g>* COMMITTERS: |
000000a0 45 78 70 61 6e 64 20 d8 79 76 69 6e 64 20 4d f8 |Expand Øyvind Mø|
000000b0 6c 6c 27 73 20 61 63 63 65 73 73 20 74 6f 20 69 |ll's access to i|
000000c0 6e 63 6c 75 64 65 20 67 65 6e 65 72 61 6c 20 64 |nclude general d|
000000d0 6f 63 73 20 61 73 0a 20 20 20 20 77 65 6c 6c 20 |ocs as. well |
000000e0 61 73 20 2e 70 6f 2c 20 61 6e 64 20 61 64 64 20 |as .po, and add |
000000f0 d8 79 76 69 6e 64 20 48 6f 6c 6d 20 28 73 75 6e |Øyvind Holm (sun|
00000100 6e 79 32 35 36 29 20 77 69 74 68 20 74 68 65 20 |ny256) with the |
00000110 73 61 6d 65 20 70 61 72 74 69 61 6c 0a 20 20 20 |same partial. |
00000120 20 61 63 63 65 73 73 2e 20 20 54 68 61 6e 6b 73 | access. Thanks|
00000130 20 74 6f 20 4a 6f 73 74 65 69 6e 20 43 68 72 2e | to Jostein Chr.|
00000140 20 41 6e 64 65 72 73 65 6e 20 26 6c 74 3b 6a 6f | Andersen &lt;jo|
00000150 73 74 65 69 6e 40 6a 6f 73 61 6e 64 65 72 2e 6e |stein@josander.n|
00000160 65 74 26 67 74 3b 0a 20 20 20 20 66 6f 72 20 61 |et&gt;. for a|
00000170 72 72 61 6e 67 69 6e 67 20 74 68 69 73 2e 0a 3c |rranging this..<|
00000180 2f 6d 73 67 3e 0a 3c 2f 6c 6f 67 65 6e 74 72 79 |/msg>.</logentry|
00000190 3e 0a 3c 2f 6c 6f 67 3e 0a |>.</log>.|

>
> > svn log --xml -r 10416 http://svn.collab.net/repos/svn/trunk
>
> <?xml version="1.0" encoding="utf-8"?>
> <log>
> <logentry
> revision="10416">
> <author>kfogel</author>
> <date>2004-07-26T14:05:14.054174Z</date>
> <msg>* COMMITTERS: Expand Øyvind Møll's access to include general docs as
> well as .po, and add Øyvind Holm (sunny256) with the same partial
> access. Thanks to Jostein Chr. Andersen &lt;jostein@josander.net&gt;
> for arranging this.
> </msg>
> </logentry>
> </log>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 1 15:38:54 2004

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