From fc961e6e343e6622dcd081c334d39572a71e251e Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 16:11:17 +0100 Subject: [PATCH] Fix test_param_entity_with_trailing_cr() 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 751ddec0..80c7b882 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -5513,8 +5513,8 @@ START_TEST(test_param_entity_with_trailing_cr) XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS); XML_SetExternalEntityRefHandler(parser, external_entity_loader); XML_SetEntityDeclHandler(parser, param_entity_match_handler); - entity_name_to_match = PARAM_ENTITY_NAME; - entity_value_to_match = PARAM_ENTITY_CORE_VALUE "\n"; + entity_name_to_match = XCS(PARAM_ENTITY_NAME); + entity_value_to_match = XCS(PARAM_ENTITY_CORE_VALUE "\n"); entity_match_flag = ENTITY_MATCH_NOT_FOUND; if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR) -- 2.40.0