diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index a9f39d59cdaec0880106cbdd03f4011d034d9de8..dc2ad9d4a4d9c56c78cb73a31492bf93be93141f 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
-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";