From a33f36ca151c3387e3e83247a6a18c636126a265 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 18:09:59 +0100 Subject: [PATCH] Fix test_entity_in_utf16_le_attr() 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 778b96a4..9f19586a 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6822,7 +6822,11 @@ START_TEST(test_entity_in_utf16_le_attr) /* */ "<\0e\0 \0a\0=\0'\0&\0#\0\x32\0\x32\0\x38\0;\0 \0" "&\0#\0x\0\x30\0\x30\0E\0\x34\0;\0'\0>\0<\0/\0e\0>\0"; - const XML_Char *expected = "\xc3\xa4 \xc3\xa4"; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("\x00e4 \x00e4"); +#else + const XML_Char *expected = XCS("\xc3\xa4 \xc3\xa4"); +#endif CharData storage; CharData_Init(&storage);