From dc2b79611ee2d899d3e2ca26ed804030c709c4e3 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 12:53:40 +0100 Subject: [PATCH] Fix attribute whitespace normalization tests for UTF-16 --- expat/tests/runtests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index cac93d35..afea718c 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -1406,9 +1406,9 @@ check_attr_contains_normalized_whitespace(void *UNUSED_P(userData), for (i = 0; atts[i] != NULL; i += 2) { const XML_Char *attrname = atts[i]; const XML_Char *value = atts[i + 1]; - if (strcmp("attr", attrname) == 0 - || strcmp("ents", attrname) == 0 - || strcmp("refs", attrname) == 0) { + if (xcstrcmp(XCS("attr"), attrname) == 0 + || xcstrcmp(XCS("ents"), attrname) == 0 + || xcstrcmp(XCS("refs"), attrname) == 0) { if (!is_whitespace_normalized(value, 0)) { char buffer[256]; sprintf(buffer, "attribute value not normalized: %" -- 2.40.0