diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-05T09·53+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-05T09·53+0200 |
commit | d2d5543625f93961b87812372858713b70a243d4 (patch) | |
tree | 7dc887b5f09bf21d269d511028f8136d9f62e0c2 /scripts/build-remote.pl.in | |
parent | a6a45bb722af5ac78f19d1927b9557ac69b881d9 (diff) |
build-remote.pl: UTF-8-decode errors
Diffstat (limited to 'scripts/build-remote.pl.in')
-rwxr-xr-x | scripts/build-remote.pl.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in index f74ba7886ed6..5f0c72b663b8 100755 --- a/scripts/build-remote.pl.in +++ b/scripts/build-remote.pl.in @@ -8,6 +8,7 @@ use Nix::Config; use Nix::SSH; use Nix::CopyClosure; use Nix::Store; +use Encode; no warnings('once'); STDERR->autoflush(1); @@ -264,7 +265,7 @@ writeInt($maxSilentTime, $to); writeInt($buildTimeout, $to); my $res = readInt($from); if ($res != 0) { - my $msg = readString($from); + my $msg = decode("utf-8", readString($from)); print STDERR "error: $msg on ‘$hostName’\n"; exit $res; } |