mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +03:00
encoding: Handle more ICU error codes
U_ILLEGAL_ESCAPE_SEQUENCE and U_UNSUPPORTED_ESCAPE_SEQUENCE can occur with ISO-2022.
This commit is contained in:
parent
55d36c5990
commit
6e503eb742
@ -1297,6 +1297,8 @@ xmlUconvConvert(unsigned char *out, int *outlen,
|
||||
|
||||
case U_INVALID_CHAR_FOUND:
|
||||
case U_ILLEGAL_CHAR_FOUND:
|
||||
case U_ILLEGAL_ESCAPE_SEQUENCE:
|
||||
case U_UNSUPPORTED_ESCAPE_SEQUENCE:
|
||||
ret = XML_ENC_ERR_INPUT;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user