darcs

Issue 919 Darcs generates invalid xml output

Title Darcs generates invalid xml output
Priority bug Status duplicate
Milestone Resolved in
Superseder darcs attempts to colorize escaped characters in XML output
View: 918
Nosy List bfr, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy
Assigned To
Topics

Created on 2008-06-12.11:42:43 by benjamin.franksen, last changed 2009-10-23.23:45:54 by admin.

Messages
msg5019 (view) Author: bfr Date: 2008-06-12.11:42:41
A patch in which the patch name contains a funny sequence of
characters, originally meant to be a 'ΓΌ', gets displayed colorized, which I 
think, should not be.

This is the relevant part of the outout:

aragon: .../PITZ-Controls/tailor > darcs 
changes --repo=tailor_d1 --xml-output --patches='rkmann' | grep name                
        <name>Versions 42 (Modulator) and 10 (Gun) as sent by K.B\fcrkmann 
to Jakob Rytter on 06-06-06</name>

and this is what it looks like byte by byte, look for 'esc':

aragon: .../PITZ-Controls/tailor > darcs 
changes --repo=tailor_d1 --xml-output --patches='rkmann' | grep name | 
od -t x1 -t a
0000000 09 3c 6e 61 6d 65 3e 56 65 72 73 69 6f 6e 73 20
         ht   <   n   a   m   e   >   V   e   r   s   i   o   n   s  sp
0000020 34 32 20 28 4d 6f 64 75 6c 61 74 6f 72 29 20 61
          4   2  sp   (   M   o   d   u   l   a   t   o   r   )  sp   a
0000040 6e 64 20 31 30 20 28 47 75 6e 29 20 61 73 20 73
          n   d  sp   1   0  sp   (   G   u   n   )  sp   a   s  sp   s
0000060 65 6e 74 20 62 79 20 4b 2e 42 1b 5b 30 31 3b 33
          e   n   t  sp   b   y  sp   K   .   B esc   [   0   1   ;   3
0000100 31 6d 5c 66 63 1b 5b 30 30 6d 72 6b 6d 61 6e 6e
          1   m   \   f   c esc   [   0   0   m   r   k   m   a   n   n
0000120 20 74 6f 20 4a 61 6b 6f 62 20 52 79 74 74 65 72
         sp   t   o  sp   J   a   k   o   b  sp   R   y   t   t   e   r
0000140 20 6f 6e 20 30 36 2d 30 36 2d 30 36 3c 2f 6e 61
         sp   o   n  sp   0   6   -   0   6   -   0   6   <   /   n   a
0000160 6d 65 3e 0a
          m   e   >  nl
0000164

This happens with both darcs-1.09 and darcs-2.00.

A stop-gap work-around is to

  export DARCS_DONT_COLOR=1

Ben
History
Date User Action Args
2008-06-12 11:42:43benjamin.franksencreate
2008-06-12 11:47:16koweysetpriority: bug
status: unread -> duplicate
superseder: + darcs attempts to colorize escaped characters in XML output
nosy: tommy, beschmi, dagit, benjamin.franksen
2009-08-06 21:07:54adminsetnosy: + dmitry.kurochkin, simon, kowey, thorkilnaur, - beschmi
2009-08-11 00:17:05adminsetnosy: - dagit
2009-08-25 18:12:28adminsetnosy: + darcs-devel, - simon
2009-08-27 14:00:51adminsetnosy: tommy, kowey, darcs-devel, benjamin.franksen, thorkilnaur, dmitry.kurochkin
2009-10-23 23:45:54adminsetnosy: + bfr, - benjamin.franksen