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>
Jürgen Kreileder committed
Dec 17, 2011 at 10:22 UTC
57cf4ad6e82af6aaa38bb215ea35ea9c465c6045
1 file changed
+3
-1
gitweb/gitweb.perl
+3
-1
@@ -6108,7 +6108,9 @@ sub git_blame_common {
6108
-type=>"text/plain", -charset => "utf-8",
6109
-status=> "200 OK");
6110
local $| = 1; # output autoflush
6111
- print while <$fd>;
6111
+ while (my $line = <$fd>) {
6112
+ print to_utf8($line);
6113
+ }
6114
close $fd
6115
or print "ERROR $!\n";
6116