Workaround strange etics error ('ascii' codec can't decode byte 0xc3).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 31 Jan 2012 23:42:57 +0000 (23:42 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 31 Jan 2012 23:42:57 +0000 (23:42 +0000)
org.glite.lbjp-common.trio/test/trio_test.cpp

index 282ff6d..a4d8c94 100644 (file)
@@ -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);