You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2004/10/01 13:37:30 UTC

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

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

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

Posted by Dominique PERETTI <dp...@lachoseinteractive.net>.
I'm on OS X. I'm gonna investigate.

Dominique PERETTI
http://www.lachoseinteractive.net/

SvnX, a GUI for svn on Mac OS X 
(http://www.lachoseinteractive.net/en/community/subversion/svnx)
On 1 oct. 04, at 16:38, Julian Foad wrote:

> Erik Huelsmann wrote:
>> On Fri, 01 Oct 2004 14:37:30 +0100, Julian Foad
>> <ju...@btopenworld.com> wrote:
>>> 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:
>> Well, I fixed issue 2059 in r11181, so maybe that is part of why it
>> won't work with r11198?
>
> Thanks for the fix, but I get exactly the same results with r11180 as 
> with 11198, so I still can't explain Dominique's problem.
>
> - Julian


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

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

Posted by Julian Foad <ju...@btopenworld.com>.
Erik Huelsmann wrote:
> On Fri, 01 Oct 2004 14:37:30 +0100, Julian Foad
> <ju...@btopenworld.com> wrote:
> 
>>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:
> 
> Well, I fixed issue 2059 in r11181, so maybe that is part of why it
> won't work with r11198?

Thanks for the fix, but I get exactly the same results with r11180 as with 11198, so I still can't explain Dominique's problem.

- Julian

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

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

Posted by Erik Huelsmann <eh...@gmail.com>.
On Fri, 01 Oct 2004 14:37:30 +0100, Julian Foad
<ju...@btopenworld.com> wrote:
> 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:
> 

Well, I fixed issue 2059 in r11181, so maybe that is part of why it
won't work with r11198?

bye,


Erik.

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