#710455 git: Many UTF-8 encoding problems

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Daniel Dehennin
Date:
2013-08-31 11:45:12 UTC
Severity:
normal
#710455#5
Date:
2013-05-30 21:11:11 UTC
From:
To:
Dear Maintainer,

I setup my gitweb[1] as fastcgi behind an nginx and found many encoding
issues.

The first one is the description of the projects, I wrapp the
configuration in a "to_utf8" call to fix the issue:
--- gitweb.cgi.orig     2013-05-30 22:31:03.960730832 +0200
+++ gitweb.cgi  2013-05-30 23:01:18.557405272 +0200
@@ -2775,7 +2775,7 @@
        if (defined $conf) {
                chomp $conf;
        }
-       return $conf;
+       return to_utf8($conf);
 }

 sub git_get_project_description {

But the shortlog has issue too[2], even the blob view[3].

Is there any plan to fix them all?

Regards.

#710455#10
Date:
2013-08-31 11:09:39 UTC
From:
To:
Hello,

The problem was running git-web as standalone fastcgi.

Using fastcgi-wrapper solve my problem but I can't figure out why
“gitweb --fastcgi” have encoding issues but only over a FCGI socket, not
command line.

More informations on Stackoverflow[1] with my answer[2].

Regards.

Footnotes:
[1]  http://stackoverflow.com/questions/7285215/nginx-fastcgi-utf-8-encoding-output-iso-8859-1-instead-of-utf8

[2]  http://stackoverflow.com/a/18149487