Bug: Commit message containing control characters
Robert Collins
robertc at robertcollins.net
Thu Sep 1 23:37:57 BST 2005
On Thu, 2005-09-01 at 23:26 +0200, Harald Meland wrote:
> Hi,
>
> I've just tried to convert a CVS repository into a bzr branch (using
> tailor with the 'bzrng' target), and think I have discovered a bug; it
> is easily reproducible like this:
>
> $ mkdir test
> $ cd test
> $ bzr init
> $ bzr commit --unchanged -m "`echo -e 'foo\001bar'`"
> $ bzr log
> bzr: ERROR: not well-formed (invalid token): line 2, column 12
> at /work/bazaar-ng/bzr.dev/bzrlib/util/elementtree/ElementTree.py line 1242, in feed()
> see ~/.bzr.log for debug information
>
> The root of the problem is that the XML 1.0 specification doesn't seem
> to allow encoding of such "control characters" as e.g. "\x01", if I
> understand the the well-formedness constraint here correctly:
>
> http://www.w3.org/TR/REC-xml/#NT-Char
 should work. What does the revision object on disk have ? (look
in .bzr/revision-store).
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050902/386582d6/attachment.pgp
More information about the bazaar
mailing list