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

index dcba70fe5355f9154c898e8d7fe87b6b33d7523d..6d3698cea89dde8fa71c5197b0fdde0408031f09 100644 (file)
@@ -1879,7 +1879,7 @@ START_TEST(test_not_standalone_handler_accept)
     XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS);
     XML_SetExternalEntityRefHandler(parser, external_entity_loader);
     XML_SetNotStandaloneHandler(parser, accept_not_standalone_handler);
-    run_ext_character_check(text, &test_data, "");
+    run_ext_character_check(text, &test_data, XCS(""));
 
     /* Repeat wtihout the external entity handler */
     XML_ParserReset(parser, NULL);