From 47ddbf3edcf25ac802613f9364074614f875ac2d Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Fri, 4 Aug 2017 18:47:19 +0100 Subject: [PATCH] Fix test_french_latin1() to work in UTF-16 --- expat/tests/runtests.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index f8ce5622..1bfb69fe 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -705,8 +705,14 @@ START_TEST(test_french_latin1) const char *text = "\n" "\xE9\xE8\xE0\xE7\xEa\xC8"; - run_character_check(text, - "\xC3\xA9\xC3\xA8\xC3\xA0\xC3\xA7\xC3\xAA\xC3\x88"); +#ifdef XML_UNICODE + const XML_Char *expected = + XCS("\x00e9\x00e8\x00e0\x00e7\x00ea\x00c8"); +#else + const XML_Char *expected = + XCS("\xC3\xA9\xC3\xA8\xC3\xA0\xC3\xA7\xC3\xAA\xC3\x88"); +#endif + run_character_check(text, expected); } END_TEST -- 2.40.0