Skip to content

Commit

Permalink
gitweb: Output valid utf8 in git_blame_common('data')
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jürgen Kreileder authored and Junio C Hamano committed Dec 19, 2011
1 parent 5d79105 commit 57cf4ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 57cf4ad

Please sign in to comment.