GNOME Bugzilla – Bug 744368
gtkdoc-depscan doesn't handle unicode in .devhelp2 files correctly
Last modified: 2015-04-27 07:37:25 UTC
Reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1090204 The latest update of gtk3 breaks gtkdoc-depscan for gtk3 and gdk3 devhelp books. This seems to be caused by property descriptions <keyword type="property" name="The "default-display" property" link="GdkDisplayManager.html#GdkDisplayManager--default-display"/> changed to <keyword type="property" name="The “default-display” property" link="GdkDisplayManager.html#GdkDisplayManager--default-display"/> in .devhelp2 files. Note the different representation of quotes (entities vs Unicode). Version-Release number of selected component (if applicable): gtk3-devel-docs-0:3.10.8-1.fc20 How reproducible: Always. Steps to Reproduce: 1. Create a C program bug.c with the following content: void bug(void); 2. Run gtkdoc-depscan -b gtk3 bug.c Actual results: It crashes with Traceback (most recent call last):
+ Trace 234642
symbols.update(book.symbols)
self.parse(); return self.__symbols
parser.parse(open(self.__catalog))
xmlreader.IncrementalParser.parse(self, source)
self.feed(buffer)
self._parser.Parse(data, isFinal)
self._cont_handler.startElement(name, AttributesImpl(attrs))
symbol = Symbol.from_xml(self.__book, attrs)
type, name = 'property', '%s::%s' % (owner, name.split('"')[1])
commit 81f84f34ebba943ace36637dbf196a846a176348 Author: Stefan Sauer <ensonic@users.sf.net> Date: Mon Apr 27 09:33:58 2015 +0200 depscan: handle unicode quotation marks Convert unicode quotation marks to their ascii counterpart so that splitting etc. works. Fixes: #744368