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 521808 - Wrong error message from xmlTextWriterStartDocument
Wrong error message from xmlTextWriterStartDocument
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: xmlwriter
git master
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-11 17:02 UTC by Henrik /KaarPoSoft
Modified: 2019-10-14 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Henrik /KaarPoSoft 2008-03-11 17:02:38 UTC
Please describe the problem:
If xmlTextWriterStartDocument is called with an unrecognized encoding, e.g.
xmlTextWriterStartDocument(writer, NULL, "THIS IS WRONG, NULL)
then xmlTextWriterStartDocument will report
xmlTextWriterStartDocument : out of memory!
instead of "Unknown encoding" or something similar

Steps to reproduce:
xmlTextWriterStartDocument(writer, NULL, "THIS IS WRONG, NULL)


Actual results:
xmlTextWriterStartDocument will report
xmlTextWriterStartDocument : out of memory!

Expected results:
reporting "Unknown encoding" or something similar

Does this happen every time?
Yes

Other information:
xmlwriter.c around line 539