From 7f7e16592726f05f789d883be73eee7035690fde Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 17:12:58 +0100 Subject: [PATCH] Fix test_utf8_in_cdata_section() to work in UTF-16 builds --- expat/tests/runtests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 7b2991bd..a14f956b 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6478,7 +6478,11 @@ END_TEST START_TEST(test_utf8_in_cdata_section) { const char *text = ""; - const XML_Char *expected = "one \xc3\xa9 two"; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("one \x00e9 two"); +#else + const XML_Char *expected = XCS("one \xc3\xa9 two"); +#endif run_character_check(text, expected); }