From d9ab96420357320000e34740d089cd4241f2c98d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Apr 2015 15:20:56 +0200 Subject: [PATCH] UTF-8 fix --- src/lib/Hydra/Helper/AddBuilds.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index e01cfd04..52b0b030 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -2,6 +2,7 @@ package Hydra::Helper::AddBuilds; use strict; use utf8; +use Encode; use JSON; use IPC::Run; use Nix::Store; @@ -345,7 +346,7 @@ sub evalJobs { (my $res, my $jobsJSON, my $stderr) = captureStdoutStderr(10800, @cmd); die "$evaluator returned " . ($res & 127 ? "signal $res" : "exit code " . ($res >> 8)) - . ":\n" . ($stderr ? $stderr : "(no output)\n") + . ":\n" . ($stderr ? decode("utf-8", $stderr) : "(no output)\n") if $res; print STDERR "$stderr";