Commit fb25a514 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixed xmlSaveFormatFileEnc() when encoding == NULL Fixes bug #67229 Daniel

* tree.c: fixed xmlSaveFormatFileEnc() when encoding == NULL
  Fixes bug #67229
Daniel
parent acb2bdac
Sun Jan 13 21:30:54 CET 2002 Daniel Veillard <daniel@veillard.com>
* tree.c: fixed xmlSaveFormatFileEnc() when encoding == NULL
Fixes bug #67229
Sun Jan 13 17:14:06 CET 2002 Daniel Veillard <daniel@veillard.com>
* tree.c: trying to avoid troubles when a subtree is copied
......
......@@ -6603,6 +6603,9 @@ xmlSaveFormatFileEnc( const char * filename, xmlDocPtr cur,
xmlCharEncoding enc;
int ret;
if (encoding == NULL)
encoding = (const char *) cur->encoding;
if (encoding != NULL) {
enc = xmlParseCharEncoding(encoding);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment