After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 733722 - XML Output invalid: XML_PROGRAMLISTING=YES copies Unicode form feed character (U+000C) to XML files
XML Output invalid: XML_PROGRAMLISTING=YES copies Unicode form feed character...
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.7
Other Windows
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-07-25 09:27 UTC by doxygen-xml-export
Modified: 2014-08-21 17:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
InputFile (147 bytes, application/octet-stream)
2014-07-25 09:27 UTC, doxygen-xml-export
Details
XML output file that includes the invalid Char value 12 (1.15 KB, text/plain)
2014-07-25 09:31 UTC, doxygen-xml-export
Details
doxyfile (100.69 KB, text/plain)
2014-07-25 09:31 UTC, doxygen-xml-export
Details

Description doxygen-xml-export 2014-07-25 09:27:24 UTC
Created attachment 281676 [details]
InputFile

+++ This bug was initially created as a clone of Bug #728740 +++

Please describe the problem:
XML_PROGRAMLISTING=YES copies the Unicode form feed character (U+000C) and maybe other "Noncharacters" from source file to XML output file. The XML files ar not valid and combine.xslt fails.


Steps to reproduce:
1. Launch DoxyGen (XML_PROGRAMLISTING=YES) with an input file that includes a form feed character (U+000C).

Example InvalideXmlOutput.h:
 // xml parser error : PCDATA invalid Char value 12
/** briefdescription text
 *
 * detaileddescription text
 */
class InvalideXmlOutput {}

2. Generate XML output
3. Launch Doxygen combine.xslt stylesheet on the output


Actual results:
Doxygen generates classInvalideXmlOutput.xml:
<programlisting><codeline lineno="1"><highlight class="normal"><sp/>[...]</programlisting>

and combine.xslt fails


Expected results:
Doxygen should generate classInvalideXmlOutput.xml without the invalid Char value 12.

and combine.xslt should execute successfully.

Does this happen every time?
Yes
Comment 1 doxygen-xml-export 2014-07-25 09:31:09 UTC
Created attachment 281677 [details]
XML output file that includes the invalid Char value 12
Comment 2 doxygen-xml-export 2014-07-25 09:31:41 UTC
Created attachment 281678 [details]
doxyfile
Comment 3 doxygen-xml-export 2014-07-25 09:35:18 UTC
invalid Char value 12
is located in first line of input file InvalideXmlOutput.h.

DoxyGen copies it to line 11 of XML output file _invalide_xml_output_8h.xml. Its located right after "<codeline lineno="1"><highlight class="normal">".
Comment 4 Dimitri van Heesch 2014-08-15 09:20:22 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 5 Dimitri van Heesch 2014-08-21 17:15:18 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.8. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferrably in the form of a self-contained example).