aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLtree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-08-08 13:46:45 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-08-08 13:46:45 +0000
commitb8c801604427441004dd77eaed275b2b952f1fe4 (patch)
tree4045fab9eef0dd9803ef674045d6702dbff4533e /HTMLtree.c
parent10752284e3e3401725a2ab49fee1367201eeff6a (diff)
downloadandroid_external_libxml2-b8c801604427441004dd77eaed275b2b952f1fe4.tar.gz
android_external_libxml2-b8c801604427441004dd77eaed275b2b952f1fe4.tar.bz2
android_external_libxml2-b8c801604427441004dd77eaed275b2b952f1fe4.zip
fixed bug #310333 with a patch close to the provided patch for HTML UTF-8
* HTMLtree.c: fixed bug #310333 with a patch close to the provided patch for HTML UTF-8 serialization * result/HTML/script2.html: this changed the output of that test Daniel
Diffstat (limited to 'HTMLtree.c')
-rw-r--r--HTMLtree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/HTMLtree.c b/HTMLtree.c
index de086db4..e77ee65f 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -552,6 +552,8 @@ htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) {
*size = 0;
return;
}
+ } else {
+ handler = xmlFindCharEncodingHandler(encoding);
}
}
@@ -1026,6 +1028,8 @@ htmlDocDump(FILE *f, xmlDocPtr cur) {
handler = xmlFindCharEncodingHandler(encoding);
if (handler == NULL)
return(-1);
+ } else {
+ handler = xmlFindCharEncodingHandler(encoding);
}
}