From 319e053368b390511471b5bb3ddf43cbb388c9c5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 18 Aug 2014 14:01:39 +0200 Subject: [PATCH] Hopefully fix UTF-8 chars in Hipchat notification messages --- src/lib/Hydra/Plugin/GitInput.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/GitInput.pm b/src/lib/Hydra/Plugin/GitInput.pm index 275a6f8f..94dad9c3 100644 --- a/src/lib/Hydra/Plugin/GitInput.pm +++ b/src/lib/Hydra/Plugin/GitInput.pm @@ -6,6 +6,7 @@ use Digest::SHA qw(sha256_hex); use File::Path; use Hydra::Helper::Nix; use Nix::Store; +use Encode; sub supportedInputTypes { my ($self, $inputTypes) = @_; @@ -162,7 +163,7 @@ sub getCommits { my $res = []; foreach my $line (split /\n/, $out) { my ($revision, $author, $email, $date) = split "\t", $line; - push @$res, { revision => $revision, author => $author, email => $email }; + push @$res, { revision => $revision, author => decode("utf-8", $author), email => $email }; } return $res;