mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
parser: Fix XML_ERR_UNSUPPORTED_ENCODING errors
Commit 45157261 added the check in the wrong place.
Also allow unsupported encoding in xmlNewInputInternal.
Fixes #654.
This commit is contained in:
3
error.c
3
error.c
@@ -1161,6 +1161,9 @@ xmlErrString(xmlParserErrors code) {
|
||||
case XML_ERR_REDECL_PREDEF_ENTITY:
|
||||
errmsg = "Invalid redeclaration of predefined entity";
|
||||
break;
|
||||
case XML_ERR_UNSUPPORTED_ENCODING:
|
||||
errmsg = "Unsupported encoding";
|
||||
break;
|
||||
|
||||
case XML_IO_UNKNOWN:
|
||||
errmsg = "Unknown IO error"; break;
|
||||
|
||||
Reference in New Issue
Block a user