[darcs-users] Darcs generates invalid xml output
Lele Gaifax
lele at nautilus.homeip.net
Thu Jun 12 11:13:04 UTC 2008
On Thu, 12 Jun 2008 12:49:58 +0200
Benjamin Franksen <benjamin.franksen at bessy.de> wrote:
> Hi All
>
> I have a patch in which the patch name contains a funny sequence of
> characters, originally meant to be a 'ü'....
>
> I think this is a bug in darcs. XML output should not contain escape
> sequences to colorize output, regardless of configuration settings.
>
> The obvious work-around is to
>
> export DARCS_DONT_COLOR=1
>
> however, this should not be necessary IMHO.
Hi Benjamin,
this is a well known problem with darcs, but I'm surprised to hear
that the colorization gets applied with --xml-output!
I tried to understand the issue, and it seems stemming from the
simplicity of its `escapeXML` function, that basically escapes only
'<' and '>' symbols...
Tailor offers an option, `replace-badchars`, that "preprocess" the XML
output replacing a set of chars with the corrisponding XML
notation. This is clearly a very dirty workaround, but it's simple
enough.
hth,
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at nautilus.homeip.net | -- Fortunato Depero, 1929.
More information about the darcs-users
mailing list