[Bug 40675] Create an unparsable file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 27 19:10:26 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=40675

--- Comment #4 from Cosimo Alfarano <cosimo.alfarano at collabora.co.uk> 2012-04-27 10:10:26 PDT ---
g_markup_escape says in the doc:

Note also that this function will produce character references in the range of
&x1; ... &x1f; for all control sequences except for tabstop, newline and
carriage return. The character references in this range are not valid XML 1.0,
but they are valid XML 1.1 and will be accepted by the GMarkup parser.

Which is what's happening, we send a char in the invalid range for XML 1.0.

Both libxml and glib are doing the right thing (or at least the documented
one).
glib is escaping the char as &#x1...; and libxml is not accepting it.

I think that the problem is moved up to us, to avoid it.
I created a test case for it, which I can reproduce.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list