Fix test_ext_entity_latin1_utf16le_bom() to work in UTF-16 builds

This commit is contained in:
Rhodri James 2017-08-22 16:53:19 +01:00 committed by Sebastian Pipping
parent 8f6c90dc72
commit 3efdc8cab4

View File

@ -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;