X-Git-Url: http://git.shiar.net/git-grep-footer.git/blobdiff_plain/859f2414c9f4b8533dcd3e6c1661f10031081630..c4f547041077dd3d3cd108fcbdc0eeb72199d56e:/git-grep-footer diff --git a/git-grep-footer b/git-grep-footer index dcb24d4..bc71345 100755 --- a/git-grep-footer +++ b/git-grep-footer @@ -1,7 +1,8 @@ -#!/usr/bin/perl -0 -CO +#!/usr/bin/perl use 5.010; use strict; use warnings; +use open ':std', OUT => ':utf8'; use Encode 'decode'; use Data::Dump 'pp'; use Getopt::Long; @@ -14,6 +15,7 @@ GetOptions(\my %opt, ) or die; local $| = 1; +local $/ = "\0"; my $HEADERMATCH = qr/ [a-z]+ (?: (?:-\w+)+ | \ by ) /ix;