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 93c848485f8f94917e2c7951732c64aede600bc2..5af873c02352cf67a25ef11e6a9301df0f19ee9e 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-4255,7
+4255,7
@@
sub git_end_subhead_html {
}
sub git_footer_html {
}
sub git_footer_html {
- my $feed_class = '
rss
_logo';
+ my $feed_class = '
feed
_logo';
print "<footer class=\"page_footer\">\n";
if (defined $project) {
print "<footer class=\"page_footer\">\n";
if (defined $project) {
@@
-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";
}