From 7de283270f88a368e331ffece1ad874b5f594017 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 14:45:37 +0100 Subject: [PATCH] Fix cr_cdata_handler() to work correctly for UTF-16 builds --- expat/tests/runtests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 259d7e27..917ccc5c 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3533,7 +3533,7 @@ cr_cdata_handler(void *userData, const XML_Char *s, int len) /* Internal processing turns the CR into a newline for the * character data handler, but not for the default handler */ - if (len == 1 && (*s == '\n' || *s == '\r')) + if (len == 1 && (*s == XCS('\n') || *s == XCS('\r'))) *pfound = 1; } -- 2.40.0