From d7e18f9c86deb73a0684e2663caeb138ab30f7f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 31 Jan 2012 23:42:57 +0000 Subject: [PATCH] Workaround strange etics error ('ascii' codec can't decode byte 0xc3). --- org.glite.lbjp-common.trio/test/trio_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.8.2.3