From: Rhodri James Date: Tue, 22 Aug 2017 13:37:01 +0000 (+0100) Subject: Fix test_attributes() to work for UTF-16 builds X-Git-Tag: R_2_2_5~24^2~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=279e29a9d4f51a6f984327028fd6af3dcf1a588c;p=libexpat Fix test_attributes() to work for UTF-16 builds --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index e58d5d76..ad72d264 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3109,18 +3109,18 @@ START_TEST(test_attributes) "" ""; AttrInfo doc_info[] = { - { "a", "1" }, - { "b", "2" }, - { "id", "one" }, + { XCS("a"), XCS("1") }, + { XCS("b"), XCS("2") }, + { XCS("id"), XCS("one") }, { NULL, NULL } }; AttrInfo tag_info[] = { - { "c", "3" }, + { XCS("c"), XCS("3") }, { NULL, NULL } }; ElementInfo info[] = { - { "doc", 3, "id", NULL }, - { "tag", 1, NULL, NULL }, + { XCS("doc"), 3, XCS("id"), NULL }, + { XCS("tag"), 1, NULL, NULL }, { NULL, 0, NULL, NULL } }; info[0].attributes = doc_info;