From fc02e094d3256bea5c81668645bd7f332c312200 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 17:04:03 +0100 Subject: [PATCH] Fix test_ext_entity_utf16_le() to work in UTF-16 builds --- expat/tests/runtests.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index aeaba66a..7fc4c136 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6351,11 +6351,15 @@ START_TEST(test_ext_entity_utf16_le) NULL, EE_PARSE_NONE }; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("\x3c00\x6500\x2f00\x3e00"); +#else const XML_Char *expected = - "\xe3\xb0\x80" /* U+3C00 */ - "\xe6\x94\x80" /* U+6A00 */ - "\xe2\xbc\x80" /* U+2F00 */ - "\xe3\xb8\x80"; /* U+3E00 */ + XCS("\xe3\xb0\x80" /* U+3C00 */ + "\xe6\x94\x80" /* U+6500 */ + "\xe2\xbc\x80" /* U+2F00 */ + "\xe3\xb8\x80"); /* U+3E00 */ +#endif CharData storage; CharData_Init(&storage); -- 2.40.0