[Bug 40675] Create an unparsable file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 1 21:49:18 CEST 2012


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

--- Comment #7 from Nicolas Dufresne <nicolas.dufresne at collabora.co.uk> 2012-05-01 12:49:18 PDT ---
(In reply to comment #6)
> For the records, the ranges of valid chars:
> http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char
> 
> Currently the entire file reading fails, so AIUI no backlogs are shown in
> empathy, which is probably the most annoying part.
> 
> 
> A solution would be copy g_markup_escape_text() from glib locally and modify it
> in order to not allow invalid chars into the XML.
> This would fix new events storing, but not the ones already logged -which is a
> bit silly - and also it would alter the original data - which is not ideal.

I don't like much this solution, we should probably use the xmlWriter code from
libxml2. Is there a way to be error resilient using xml2 ?

-- 
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