]> granicus.if.org Git - libexpat/commitdiff
Fix test_ext_entity_latin1_utf16be_bom() to work in UTF-16 builds
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 22 Aug 2017 15:55:16 +0000 (16:55 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 21:13:14 +0000 (23:13 +0200)
expat/tests/runtests.c

index 9e1c648a016e19b427b1dd1da77bf507f8e77333..8c233af3b29111dd4c6f9700f6886acb61711a63 100644 (file)
@@ -6196,8 +6196,12 @@ START_TEST(test_ext_entity_latin1_utf16be_bom)
         NULL,
         EE_PARSE_NONE
     };
+#ifdef XML_UNICODE
+    const XML_Char *expected = XCS("\x00fe\x00ff L");
+#else
     /* In UTF-8, y-diaeresis is 0xc3 0xbf, lowercase thorn is 0xc3 0xbe */
-    const XML_Char *expected = "\xc3\xbe\xc3\xbf L";
+    const XML_Char *expected = XCS("\xc3\xbe\xc3\xbf L");
+#endif
     CharData storage;