From d024ce6e8f0e59ce0441ed38339f2dc15d398ce0 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 15:26:03 +0100 Subject: [PATCH] Fix external_entity_value_aborter() 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 20f24a90..28bfb033 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -4734,12 +4734,12 @@ external_entity_value_aborter(XML_Parser parser, ext_parser = XML_ExternalEntityParserCreate(parser, context, NULL); if (ext_parser == NULL) fail("Could not create external entity parser"); - if (!strcmp(systemId, "004-1.ent")) { + if (!xcstrcmp(systemId, XCS("004-1.ent"))) { if (_XML_Parse_SINGLE_BYTES(ext_parser, text1, strlen(text1), XML_TRUE) == XML_STATUS_ERROR) xml_failure(ext_parser); } - if (!strcmp(systemId, "004-2.ent")) { + if (!xcstrcmp(systemId, XCS("004-2.ent"))) { XML_SetXmlDeclHandler(ext_parser, entity_suspending_xdecl_handler); XML_SetUserData(ext_parser, ext_parser); if (_XML_Parse_SINGLE_BYTES(ext_parser, text2, strlen(text2),