guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

174/376: build-remote.pl: UTF-8-decode errors


From: Ludovic Courtès
Subject: 174/376: build-remote.pl: UTF-8-decode errors
Date: Wed, 28 Jan 2015 22:04:50 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit d2d5543625f93961b87812372858713b70a243d4
Author: Eelco Dolstra <address@hidden>
Date:   Fri Sep 5 11:53:11 2014 +0200

    build-remote.pl: UTF-8-decode errors
---
 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 f74ba78..5f0c72b 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;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]