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

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