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

index b31d3dea35e2af2191819660064a0f8556669df6..092b3e4d4f2ac5a0739d322e1255bbf6753eab47 100644 (file)
@@ -852,7 +852,11 @@ START_TEST(test_utf16)
         "\000<\000d\000o\000c\000 \000a\000=\000'\0001\0002\0003\000'\000>"
         "\000s\000o\000m\000e\000 \xff\x21\000 \000t\000e\000x\000t\000"
         "<\000/\000d\000o\000c\000>";
-    char expected[] = "some \357\274\241 text";
+#ifdef XML_UNICODE
+    const XML_Char *expected = XCS("some \xff21 text");
+#else
+    const XML_Char *expected = XCS("some \357\274\241 text");
+#endif
     CharData storage;
 
     CharData_Init(&storage);