git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/rfc] gitweb: open files (e.g. indextext.html) in utf8 mode
@ 2008-07-02 12:13 Gerrit Pape
  2008-07-02 13:37 ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: Gerrit Pape @ 2008-07-02 12:13 UTC (permalink / raw)
  To: git, Junio C Hamano

From: =?utf-8?q?Recai=20Okta=C5=9F?= <roktas@debian.org>

gitweb used to use utf8 only in stdout.  As a result, included files
like indextext.html appeared garbled if they contain utf8 characters.
Now utf8 is also used when reading files.

The patch was submitted through
 http://bugs.debian.org/487465

Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 90cd99b..96cb4e0 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -16,7 +16,7 @@ use Encode;
 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'};
-- 
1.5.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-03 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 12:13 [PATCH/rfc] gitweb: open files (e.g. indextext.html) in utf8 mode Gerrit Pape
2008-07-02 13:37 ` Jakub Narebski
2008-07-03  9:39   ` Lea Wiemann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).