]> granicus.if.org Git - libexpat/commitdiff
Fix test_french_utf8() to work in UTF-16
authorRhodri James <rhodri@kynesim.co.uk>
Fri, 4 Aug 2017 17:49:22 +0000 (18:49 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 20:30:33 +0000 (22:30 +0200)
expat/tests/runtests.c

index 1bfb69fe1e0fdde92bb8f56885e3e8e0f5fefb15..0e042bc6c422fb4982e5e2a3dc50055ba849f715 100644 (file)
@@ -721,7 +721,12 @@ START_TEST(test_french_utf8)
     const char *text =
         "<?xml version='1.0' encoding='utf-8'?>\n"
         "<doc>\xC3\xA9</doc>";
-    run_character_check(text, "\xC3\xA9");
+#ifdef XML_UNICODE
+    const XML_Char *expected = XCS("\x00e9");
+#else
+    const XML_Char *expected = XCS("\xC3\xA9");
+#endif
+    run_character_check(text, expected);
 }
 END_TEST