Fix test_ext_entity_set_bom() to work for UTF-16
This commit is contained in:
parent
f0a5129bd4
commit
e4ca396c1c
@ -1628,9 +1628,14 @@ START_TEST(test_ext_entity_set_bom)
|
|||||||
XCS("utf-8"),
|
XCS("utf-8"),
|
||||||
NULL
|
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);
|
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
|
END_TEST
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user