From f51e70d019c18853bf44e28d6193337549c522a4 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 15:48:21 +0100 Subject: [PATCH] Fix external_entity_public() 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 fa8f8a1e..77cca241 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -4942,10 +4942,10 @@ external_entity_public(XML_Parser parser, ext_parser = XML_ExternalEntityParserCreate(parser, context, NULL); if (ext_parser == NULL) return XML_STATUS_ERROR; - if (systemId != NULL && !strcmp(systemId, "http://example.org/")) { + if (systemId != NULL && !xcstrcmp(systemId, XCS("http://example.org/"))) { text = text1; } - else if (publicId != NULL && !strcmp(publicId, "foo")) { + else if (publicId != NULL && !xcstrcmp(publicId, XCS("foo"))) { text = text2; } else -- 2.40.0