GNOME Bugzilla – Bug 339335
Move to xml-1.1 to handle invalid characters
Last modified: 2018-05-22 12:53:51 UTC
Please describe the problem: A gnumeric cell with ^H in it is printed as such by libgsf with the warning g_warning ("Unknown char 0x%hhx in string", *cur); Such a file cannot be read back. Steps to reproduce: 1. 2. 3. Actual results: Expected results: The character should be dropped on the floor. Does this happen every time? Other information:
See http://www.w3.org/TR/REC-xml/#NT-Char [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */
I have installed a bandaid for this that simply drops the characters. Yes, that does indeed suck, but until we can go to XML 1.1 I think we are stuck with that.
What do we need to consider to jump to 1.1 ?
A library to read it.
*** Bug 568919 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgsf/issues/1.