summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJürgen Kreileder <jk@blackdown.de>2011-12-17 10:22:23 +0100
committerJunio C Hamano <gitster@pobox.com>2011-12-18 19:44:52 -0800
commit57cf4ad6e82af6aaa38bb215ea35ea9c465c6045 (patch)
treec63de4df43c074a1e55c2dad57378f5cd26f7d27 /gitweb
parent5d7910569b2caeb65354d17b26359cb235026b39 (diff)
downloadgit-57cf4ad6e82af6aaa38bb215ea35ea9c465c6045.tar.gz
gitweb: Output valid utf8 in git_blame_common('data')
Otherwise when javascript-actions are enabled gitweb shown broken author names in the tooltips on blame pages ('blame_incremental' view). Signed-off-by: Jürgen Kreileder <jk@blackdown.de> Acked-by: Jakub Narębski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index a9f39d59cd..dc2ad9d4a4 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -6108,7 +6108,9 @@ sub git_blame_common {
-type=>"text/plain", -charset => "utf-8",
-status=> "200 OK");
local $| = 1; # output autoflush
- print while <$fd>;
+ while (my $line = <$fd>) {
+ print to_utf8($line);
+ }
close $fd
or print "ERROR $!\n";