Skip to content

Commit

Permalink
UTF-8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 14, 2015
1 parent 01cd639 commit d9ab964
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Hydra/Helper/AddBuilds.pm
Expand Up @@ -2,6 +2,7 @@ package Hydra::Helper::AddBuilds;

use strict;
use utf8;
use Encode;
use JSON;
use IPC::Run;
use Nix::Store;
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit d9ab964

Please sign in to comment.