From: Rhodri James Date: Tue, 22 Aug 2017 15:53:19 +0000 (+0100) Subject: Fix test_ext_entity_latin1_utf16le_bom() to work in UTF-16 builds X-Git-Tag: R_2_2_5~24^2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3efdc8cab4d35d9d411b2b23896308f4e800fe97;p=libexpat Fix test_ext_entity_latin1_utf16le_bom() to work in UTF-16 builds --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 48059d5d..9e1c648a 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6157,8 +6157,12 @@ START_TEST(test_ext_entity_latin1_utf16le_bom) NULL, EE_PARSE_NONE }; +#ifdef XML_UNICODE + const XML_Char *expected = XCS("\x00ff\x00feL "); +#else /* In UTF-8, y-diaeresis is 0xc3 0xbf, lowercase thorn is 0xc3 0xbe */ - const XML_Char *expected = "\xc3\xbf\xc3\xbeL "; + const XML_Char *expected = XCS("\xc3\xbf\xc3\xbeL "); +#endif CharData storage;