1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

fixed bug reported by Petr Pajas, in the absence of encoding UTF-8 should

* xmlsave.c: fixed bug reported by Petr Pajas, in the absence of
  encoding UTF-8 should really be assumed. This may break if
  the HTTP headers indicates for example ISO-8859-1 since this
  then becomes a well formedness error.
Daniel
This commit is contained in:
Daniel Veillard 2005-03-31 15:22:56 +00:00
parent 7331e5cab8
commit 64354ea7d6
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Thu Mar 31 17:20:32 CEST 2005 Daniel Veillard <daniel@veillard.com>
* xmlsave.c: fixed bug reported by Petr Pajas, in the absence of
encoding UTF-8 should really be assumed. This may break if
the HTTP headers indicates for example ISO-8859-1 since this
then becomes a well formedness error.
Thu Mar 31 16:57:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
* SAX.c: fixed #172260 redundant assignment.

View File

@ -1808,6 +1808,9 @@ xmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
if ((buf == NULL) || (cur == NULL)) return;
if (encoding == NULL)
encoding = "UTF-8";
memset(&ctxt, 0, sizeof(ctxt));
ctxt.doc = doc;
ctxt.buf = buf;