Fix test_ext_entity_set_bom() to work for UTF-16

This commit is contained in:
Rhodri James 2017-08-22 13:22:39 +01:00 committed by Sebastian Pipping
parent f0a5129bd4
commit e4ca396c1c

View File

@ -1628,9 +1628,14 @@ START_TEST(test_ext_entity_set_bom)
XCS("utf-8"),
NULL
};
#ifdef XML_UNICODE
const XML_Char *expected = XCS("\x00e9");
#else
const XML_Char *expected = XCS("\xc3\xa9");
#endif
XML_SetExternalEntityRefHandler(parser, external_entity_loader);
run_ext_character_check(text, &test_data, "\xC3\xA9");
run_ext_character_check(text, &test_data, expected);
}
END_TEST