test/harness/testcaseio.c
changeset 8 cf332d440466
parent 7 721e468c10f3
child 9 6a13fe0fc19e
     1.1 --- a/test/harness/testcaseio.c	Fri Jan 27 21:40:35 2012 +0000
     1.2 +++ b/test/harness/testcaseio.c	Fri Jan 27 23:59:51 2012 +0000
     1.3 @@ -39,7 +39,7 @@
     1.4  	else if (!testcase->expected && !strcmp(tag,"EXPECTED"))
     1.5  	    testcase->expected=g_strdup(text);
     1.6  	else if (!testcase->encoding && !strcmp(tag,"ENCODING"))
     1.7 -	    testcase->encoding=g_strdup(text);
     1.8 +	    testcase->encoding=g_strchomp(g_strdup(text));
     1.9  	else
    1.10  	{
    1.11  	    fprintf(stderr,"%s: Not a valid testcase (%s)\n",filename,tag);