summaryrefslogtreecommitdiff
path: root/unpack-trees.h
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2008-12-01 19:01:42 +0100
committerJunio C Hamano <gitster@pobox.com>2008-12-02 18:03:07 -0800
commit2dcb5e1ac87330b20962af9199a345eb378d3705 (patch)
treeb64873f4a1b4b43f671b94c39b1c6edbe50969c0 /unpack-trees.h
parent3273ebc759ee44fa22026d2882d56010742c6797 (diff)
downloadgit-2dcb5e1ac87330b20962af9199a345eb378d3705.tar.gz
gitweb: Fix handling of non-ASCII characters in inserted HTML files
Use new insert_file() subroutine to insert HTML chunks from external files: $site_header, $home_text (by default indextext.html), $site_footer, and $projectroot/$project/REAME.html. All non-ASCII chars of those files will be broken by Perl IO layer without decoding to utf8, so insert_file() does to_utf8() on each printed line; alternate solution would be to open those files with "binmode $fh, ':utf8'", or even all files with "use open qw(:std :utf8)". Note that inserting README.html lost one of checks for simplicity. Noticed-by: Tatsuki Sugiura <sugi@nemui.org> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.h')
0 files changed, 0 insertions, 0 deletions