1
0
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:
Nick Wellnhofer
2023-12-29 18:47:30 +01:00
parent e45a4d7115
commit 16b0dbc1b3
3 changed files with 47 additions and 15 deletions

View File

@@ -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;