From: František Dvořák Date: Tue, 31 Jan 2012 23:42:57 +0000 (+0000) Subject: Workaround strange etics error ('ascii' codec can't decode byte 0xc3). X-Git-Tag: glite-jobid-api-c_R_2_1_0_2~11 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=d7e18f9c86deb73a0684e2663caeb138ab30f7f8;p=jra1mw.git Workaround strange etics error ('ascii' codec can't decode byte 0xc3). --- diff --git a/org.glite.lbjp-common.trio/test/trio_test.cpp b/org.glite.lbjp-common.trio/test/trio_test.cpp index 282ff6d..a4d8c94 100644 --- a/org.glite.lbjp-common.trio/test/trio_test.cpp +++ b/org.glite.lbjp-common.trio/test/trio_test.cpp @@ -76,10 +76,10 @@ void TrioTest::escapeSQL() } void TrioTest::escapeJSON() { - char *e, *r = "START Jásoň doesn't like: \\\\\\n\\r\\b\\r\\t\\f and \\u001b END"; + char *e, *r = "START Jason doesn't like: \\\\\\n\\r\\b\\r\\t\\f and \\u001b END"; int ret; - ret = trio_asprintf(&e, "START %|Js END", "Jásoň doesn't like: \\\n\r\b\r\t\f and \x1B"); + ret = trio_asprintf(&e, "START %|Js END", "Jason doesn't like: \\\n\r\b\r\t\f and \x1B"); std::cerr << e << std::endl; CPPUNIT_ASSERT_MESSAGE("escape JSON failed",ret > 0 && strcmp(e,r) == 0);