#173: darcs->any processing fails on non-ascii changelogs
---------------------+------------------------------------------------------
Reporter: adept | Owner: lele
Type: defect | Status: new
Priority: major | Milestone: VersionOne
Component: darcs | Version: 0.9
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment(by adept):
As a temporary workaround, one can create ~/bin/darcs wrapper shell
script:
{{{
#!/bin/bash
is_xml_output=$(echo "$@" | fgrep -- '--xml-output')
/usr/bin/darcs "$@" | \
( if [ -n "$is_xml_output" ] ; then
cat > /tmp/darcs.xml
if [ -s /tmp/darcs.xml ] ; then
xmllint --xmlout --recover --nowarning /tmp/darcs.xml 2>/dev/null
fi
else
cat
fi )
}}}
Xmllint will recode non-ascii symbols to XML entities, which will make
SAXParser happy
--
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/173#comment:1>
Tailor <http://progetti.arstecnica.it/tailor>
An inter-VCs changeset exchanger
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor