runtest --xml doesn't escape C0 control codes in XML output
Andrey ``Bass'' Shcheglov <[email protected]> Fri, 18 Aug 2017 18:00:41 +0300
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Organization | MIPT |
| Message-ID | <[email protected]> |
Hello, Whenever there're C0 control codes <https://en.wikipedia.org/wiki/C0_and_C1_control_codes#C0_.28ASCII_and_derivatives.29> in the output of any of the tests, "runtest --xml" doesn't properly escape those, producing XML which is not well-formed, e.g.: > <test> > <input></input> > <output>��query</output> > <result>PASS</result> > <name>gdb.base/annota-input-while-running.exp: delete > breakpoints</name> > <prms_id>0</prms_id> > </test> > <test> > <input></input> > <output>��query</output> > <result>PASS</result> > <name>gdb.base/annota-input-while-running.exp: break after > sleep</name> > <prms_id>0</prms_id> > </test> See also the corresponding issue reported for TeamCity Autotools plug-in <https://github.com/unix-junkie/teamcity-autotools-plugin/issues/12>. DejaGnu versions 1.5+ are affected. Regards, Andrey. _______________________________________________ Bug-dejagnu mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-dejagnu