From f50066ab6f225c241ce3f97f16f5f8b705192a69 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 17 Aug 2014 23:43:01 +0200 Subject: [PATCH] Fix encoding of Hydra logs --- src/lib/Hydra/Controller/Build.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index bd38e7b9..c5d9a1c7 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -65,7 +65,7 @@ sub build_GET { $c->stash->{drvAvailable} = isValidPath $build->drvpath; if (!$build->finished && $build->busy) { - $c->stash->{logtext} = read_file($build->logfile, err_mode => 'quiet') // ""; + $c->stash->{logtext} = decode("utf-8", read_file($build->logfile, err_mode => 'quiet') // ""); } if ($build->finished && $build->iscachedbuild) {