From: Jakub Narebski Date: Sat, 17 Dec 2011 09:22:23 GMT Subject: [PATCH 3/3] gitweb: Output valid utf8 in git_blame_common('data') Message-ID: <1324113743-21498-4-git-send-email-jnareb@gmail.com> In-Reply-To: <1324113743-21498-1-git-send-email-jnareb@gmail.com> From: Jürgen Kreileder 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 Acked-by: Jakub Narębski --- gitweb/gitweb.perl | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index dcf4658..d24763b 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6244,7 +6244,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"; -- 1.7.6