From: Rhodri James Date: Tue, 22 Aug 2017 12:04:55 +0000 (+0100) Subject: Fix UnknownEncodingHandler to work with UTF-16 X-Git-Tag: R_2_2_5~24^2~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea58e41725a7e9fd9063555f291d62a8e5ef1dd;p=libexpat Fix UnknownEncodingHandler to work with UTF-16 --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index afea718c..b13fbfa5 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -1487,7 +1487,7 @@ END_TEST static int XMLCALL UnknownEncodingHandler(void *UNUSED_P(data),const XML_Char *encoding,XML_Encoding *info) { - if (strcmp(encoding,"unsupported-encoding") == 0) { + if (xcstrcmp(encoding, XCS("unsupported-encoding")) == 0) { int i; for (i = 0; i < 256; ++i) info->map[i] = i;