From: Martin Mares Date: Thu, 27 Mar 2014 14:59:04 +0000 (+0100) Subject: contest.pl: Checker output interpreted as UTF-8 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=260da9e3f175762f99ca65f059f951c40fce570b;p=moe.git contest.pl: Checker output interpreted as UTF-8 --- diff --git a/submit/contest.pl b/submit/contest.pl index 7d54456..5bfbdc2 100755 --- a/submit/contest.pl +++ b/submit/contest.pl @@ -462,6 +462,7 @@ sub run_checks() { defined $part or $part = ""; my $verdict = `$root/bin/check -s "$submit_filename" $task $part 2>&1`; if ($?) { + utf8::decode($verdict); checks_failed($verdict); } else { checks_ok();