From cea58e41725a7e9fd9063555f291d62a8e5ef1dd Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 13:04:55 +0100 Subject: [PATCH] Fix UnknownEncodingHandler to work with UTF-16 --- expat/tests/runtests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0