Skip to content

Commit

Permalink
Fix encoding issue
Browse files Browse the repository at this point in the history
get_output should probably decode automatically, but for now this is enough.
  • Loading branch information
AlexDaniel committed Jul 16, 2016
1 parent a8df0e3 commit f763de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bisectable.pl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sub process_message {

if ($exit_good == $exit_bad and $out_good eq $out_bad) {
$self->tell($message, "On both starting points the exit code is $exit_bad and the output is identical as well");
return "Output on both points: $out_good"; # will be gisted automatically if required
return 'Output on both points: ' . decode_utf8($out_good); # will be gisted automatically if required
}
my $output_file = '';
if ($exit_good == $exit_bad) {
Expand Down
1 change: 1 addition & 0 deletions committable.pl
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ sub process_message {
$out = 'No build for this commit';
} else { # actually run the code
($out, my $exit, my $time) = $self->get_output($self->BUILDS . "/$full_commit/bin/perl6", $filename);
$out = decode_utf8($out);
$out .= " exit code = $exit" if ($exit != 0);
}
my $short_commit = substr($commit, 0, 7);
Expand Down

0 comments on commit f763de7

Please sign in to comment.