[PATCH 11] gitweb: Read project description using utf-8 encoding
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
gitweb/gitweb.cgi | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index d39af82..7d52a2c 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -463,7 +463,7 @@ sub git_read_hash {
sub git_read_description {
my $path = shift;
- open my $fd, "$projectroot/$path/description" or return undef;
+ open (my $fd, "<:utf8", "$projectroot/$path/description") or return undef;
my $descr = <$fd>;
close $fd;
chomp $descr;
--
1.4.0