From f7434bd86ed1165a563a5d0e4ef321e977362cc1 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 17:49:32 +0100 Subject: [PATCH] Fix test_utf8_in_cdata_section_2() 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 48cffbc3..c5510835 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6514,7 +6514,11 @@ END_TEST START_TEST(test_utf8_in_cdata_section_2) { const char *text = ""; - const XML_Char *expected = "\xc3\xa9]\xc3\xa9two"; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("\x00e9]\x00e9two"); +#else + const XML_Char *expected = XCS("\xc3\xa9]\xc3\xa9two"); +#endif run_character_check(text, expected); }