summaryrefslogtreecommitdiff
path: root/HTMLparser.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-07-29 11:20:30 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-07-29 11:20:30 +0000
commit7cc235722ca76ae7509a5eedb2ca0e442d3499a9 (patch)
tree94e8449f611865192ef54a5f6be9d126a375bf2b /HTMLparser.c
parent42331a90297058b65403f5e0c5097cd05bef0bab (diff)
downloadlibxml2-7cc235722ca76ae7509a5eedb2ca0e442d3499a9.tar.gz
1 line patch, apparently htmlNewDoc() was not setting doc->charset. Daniel
* HTMLparser.c: 1 line patch, apparently htmlNewDoc() was not setting doc->charset. Daniel
Diffstat (limited to 'HTMLparser.c')
-rw-r--r--HTMLparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/HTMLparser.c b/HTMLparser.c
index 2e7984d4..d8230669 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -2091,6 +2091,7 @@ htmlNewDocNoDtD(const xmlChar *URI, const xmlChar *ExternalID) {
cur->ids = NULL;
cur->refs = NULL;
cur->_private = NULL;
+ cur->charset = XML_CHAR_ENCODING_UTF8;
if ((ExternalID != NULL) ||
(URI != NULL))
xmlCreateIntSubset(cur, BAD_CAST "html", ExternalID, URI);