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

patch from Markus Henke when an encoding ain't recognized Daniel

* parser.c: patch from Markus Henke when an encoding ain't recognized
Daniel
This commit is contained in:
Daniel Veillard 2002-04-09 16:10:39 +00:00
parent 88e0ad4bce
commit 46d6c44c8e
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue Apr 9 18:09:31 CEST 2002 Daniel Veillard <daniel@veillard.com>
* parser.c: patch from Markus Henke when an encoding ain't recognized
Tue Apr 9 15:47:14 CEST 2002 Daniel Veillard <daniel@veillard.com>
* libxml.m4: got a report that #include <string.h> was needed

View File

@ -7268,6 +7268,7 @@ xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) {
if (enc != XML_CHAR_ENCODING_ERROR) {
xmlSwitchEncoding(ctxt, enc);
if (ctxt->errNo == XML_ERR_UNSUPPORTED_ENCODING) {
ctxt->input->encoding = NULL;
xmlFree(encoding);
return(NULL);
}