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

index a7e31ad6c5e2e0d8b86b9a50ff57814e769695a6..77d614743af116482154b03569dfc6ef5173b78e 100644 (file)
@@ -6278,8 +6278,12 @@ START_TEST(test_ext_entity_latin1_utf16be_bom2)
         NULL,
         EE_PARSE_FULL_BUFFER
     };
+#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";
+#endif
     CharData storage;