mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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:
@ -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>
|
Tue Apr 9 15:47:14 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* libxml.m4: got a report that #include <string.h> was needed
|
* libxml.m4: got a report that #include <string.h> was needed
|
||||||
|
1
parser.c
1
parser.c
@ -7268,6 +7268,7 @@ xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) {
|
|||||||
if (enc != XML_CHAR_ENCODING_ERROR) {
|
if (enc != XML_CHAR_ENCODING_ERROR) {
|
||||||
xmlSwitchEncoding(ctxt, enc);
|
xmlSwitchEncoding(ctxt, enc);
|
||||||
if (ctxt->errNo == XML_ERR_UNSUPPORTED_ENCODING) {
|
if (ctxt->errNo == XML_ERR_UNSUPPORTED_ENCODING) {
|
||||||
|
ctxt->input->encoding = NULL;
|
||||||
xmlFree(encoding);
|
xmlFree(encoding);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user