Skip to content

Commit

Permalink
Bug fix: xml encoding error
Browse files Browse the repository at this point in the history
  • Loading branch information
BlzFans committed Dec 19, 2012
1 parent ab093a6 commit 13f9567
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 3rd_src/libxml2/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -9955,12 +9955,15 @@ xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) {
ctxt->encoding = encoding;
}
else if (encoding != NULL) {
xmlCharEncodingHandlerPtr handler;
/*wke++++++
xmlCharEncodingHandlerPtr handler;
++++++wke*/

if (ctxt->input->encoding != NULL)
xmlFree((xmlChar *) ctxt->input->encoding);
ctxt->input->encoding = encoding;

/*wke++++++
handler = xmlFindCharEncodingHandler((const char *) encoding);
if (handler != NULL) {
xmlSwitchToEncoding(ctxt, handler);
Expand All @@ -9969,6 +9972,7 @@ xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) {
"Unsupported encoding %s\n", encoding);
return(NULL);
}
++++++wke*/
}
}
return(encoding);
Expand Down
Binary file modified WebKitLibraries/win/lib/libxml2.lib
Binary file not shown.
Binary file modified demo/bin/wke.dll
Binary file not shown.

0 comments on commit 13f9567

Please sign in to comment.