Message ID | 8e89b5d0-c913-0dcf-7c3a-62de5af02282@debian.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | gitweb encoding issues (partial patch) | expand |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index b5490dfecf..434b1c01cd 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -8063,12 +8063,12 @@ sub git_commitdiff { } 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"; }