Package: gitweb
Version: 1:1.5.5.1-1
Severity: normal
Tags: patch
Subject says it all. In the current code, gitweb uses utf8 only in stdout.
As a result, included files like indextext.html appears garbled if it
contains utf8 characters. The attached patch works fine without any
observed side-effects.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (600, 'unstable'), (500, 'testing'), (450, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=tr_TR.UTF-8, LC_CTYPE=tr_TR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gitweb depends on:
ii git-core 1:1.5.5.1-1 fast, scalable, distributed revisi
ii perl 5.10.0-10 Larry Wall's Practical Extraction
gitweb recommends no packages.
-- no debconf information
--
roktas
--- /usr/lib/cgi-bin/gitweb.cgi.orig 2008-06-22 00:51:53.000000000 +0000
+++ /usr/lib/cgi-bin/gitweb.cgi 2008-06-22 00:52:07.000000000 +0000
@@ -16,7 +16,7 @@
use Fcntl ':mode';
use File::Find qw();
use File::Basename qw(basename);
-binmode STDOUT, ':utf8';
+use open qw(:std :utf8);
BEGIN {
CGI->compile() if $ENV{'MOD_PERL'};