From 21ed018487875581aa815aada9d3f2626b315c53 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 15:50:10 +0100 Subject: [PATCH] Fix external_entity_devaluer() to work for UTF-16 builds --- expat/tests/runtests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 77cca241..b04712aa 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -5042,9 +5042,9 @@ external_entity_devaluer(XML_Parser parser, XML_Parser ext_parser; int clear_handler = (intptr_t)XML_GetUserData(parser); - if (systemId == NULL || !strcmp(systemId, "bar")) + if (systemId == NULL || !xcstrcmp(systemId, XCS("bar"))) return XML_STATUS_OK; - if (strcmp(systemId, "foo")) + if (xcstrcmp(systemId, XCS("foo"))) fail("Unexpected system ID"); ext_parser = XML_ExternalEntityParserCreate(parser, context, NULL); if (ext_parser == NULL) -- 2.40.0