Fix test_ext_entity_latin1_utf16be_bom2() to work in UTF-16 builds

This commit is contained in:
Rhodri James 2017-08-22 16:59:55 +01:00 committed by Sebastian Pipping
parent ae47db8288
commit e08a81045c

View File

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