gitweb: Convert generated contents to utf8 in commitdiff_plain
authorYasushi SHOJI <redacted>
Tue, 29 Jan 2008 12:16:02 +0000 (21:16 +0900)
committerJunio C Hamano <redacted>
Wed, 30 Jan 2008 05:23:57 +0000 (21:23 -0800)
commit7720224cebde08186627ab7bdb06018905d84e30
tree0a6fe08e4eb5ab37d563eec2f7dcaeddd091071a
parentab989adf6ab32fb80fd42cc95ed0eacb029258fe
gitweb: Convert generated contents to utf8 in commitdiff_plain

If the commit message, or commit author contains non-ascii, it must be
converted from Perl internal representation to utf-8, to follow what
got declared in HTTP header.  Use to_utf8() to do the conversion.

This necessarily replaces here-doc with "print" statements.

Signed-off-by: Yasushi SHOJI <redacted>
Acked-by: İsmail Dönmez <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb/gitweb.perl
git clone https://git.99rst.org/PROJECT