Chris Morgan
›
Git
›
gitweb
› blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
commit
grep
author
committer
pickaxe
?
search:
re
Fix UTF-8 mangling on patch and commitdiff_plain
[gitweb]
/
gitweb.cgi
diff --git
a/gitweb.cgi
b/gitweb.cgi
index d78c4f54abf5cb5aa2bdd4c64d8ae80e79a68013..5af873c02352cf67a25ef11e6a9301df0f19ee9e 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-8059,12
+8059,12
@@
sub git_commitdiff {
} elsif ($format eq 'plain') {
local $/ = undef;
} 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;
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";
}
close $fd
or print "Reading git-format-patch failed\n";
}