From e08a81045c2ff23b63760313e5b9e0679c8b9823 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 16:59:55 +0100 Subject: [PATCH] Fix test_ext_entity_latin1_utf16be_bom2() to work in UTF-16 builds --- expat/tests/runtests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index a7e31ad6..77d61474 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6278,8 +6278,12 @@ START_TEST(test_ext_entity_latin1_utf16be_bom2) NULL, EE_PARSE_FULL_BUFFER }; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("\x00fe\x00ff L"); +#else /* In UTF-8, y-diaeresis is 0xc3 0xbf, lowercase thorn is 0xc3 0xbe */ const XML_Char *expected = "\xc3\xbe\xc3\xbf L"; +#endif CharData storage;