]> mj.ucw.cz Git - eval.git/commitdiff
contest.pl: Checker output interpreted as UTF-8
authorMartin Mares <mj@ucw.cz>
Thu, 27 Mar 2014 14:59:04 +0000 (15:59 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 27 Mar 2014 14:59:04 +0000 (15:59 +0100)
submit/contest.pl

index 7d5445663a099bcfd3d0ccc0dbf7d8b1c6170935..5bfbdc2666ba459761073de9c0327c4d4c112ca1 100755 (executable)
@@ -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();