From 08658be1650dfb4c7f21b162d52d06ebc6ad61af Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Sat, 14 Jul 2012 09:39:03 -0500 Subject: Handle UTF-8 commit messages properly. --- lib/Crawl/Bot/Plugin/Commit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm index e0d158a..8867aac 100644 --- a/lib/Crawl/Bot/Plugin/Commit.pm +++ b/lib/Crawl/Bot/Plugin/Commit.pm @@ -125,7 +125,7 @@ sub parse_commit { my ($rev) = @_; my $dir = pushd($self->checkout); - CORE::open(F, "-|", qw(git log -1 --shortstat --pretty=format:%H%x00%aN%x00%s%x00%b%x00%ar%x00), $rev) or return undef; + CORE::open(F, "-|:encoding(UTF-8)", qw(git log -1 --shortstat --pretty=format:%H%x00%aN%x00%s%x00%b%x00%ar%x00), $rev) or return undef; local $/ = undef; my $info = ; CORE::close(F) or return undef; -- cgit v1.2.3-54-g00ecf