} elsif ($format eq 'plain') {
local $/ = undef;
- print <$fd>;
+ print to_utf8(<$fd>);
close $fd
or print "Reading git-diff-tree failed\n";
} elsif ($format eq 'patch') {
local $/ = undef;
- print <$fd>;
+ print to_utf8(<$fd>);
close $fd
or print "Reading git-format-patch failed\n";
}