summaryrefslogtreecommitdiff
path: root/Documentation/diff-generate-patch.txt
diff options
context:
space:
mode:
authorLibravatar Julien Moutinho <julm+git@sourcephile.fr>2020-03-29 01:20:28 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-03-29 09:06:51 -0700
commit2ecfcdecc612505291cfdffb886b5d7615c3e581 (patch)
tree4800401b4c26b8bbce992bf1bb8eadfade1d62d3 /Documentation/diff-generate-patch.txt
parentGit 2.25.2 (diff)
downloadtgif-2ecfcdecc612505291cfdffb886b5d7615c3e581.tar.xz
gitweb: fix UTF-8 encoding when using CGI::Fast
FCGI streams are implemented using the older stream API: TIEHANDLE, therefore applying PerlIO layers using binmode() has no effect to them. The solution in this patch is to redefine the FCGI::Stream::PRINT function to use UTF-8 as output encoding, except within git_blob_plain() and git_snapshot() which must still output in raw binary mode. This problem and solution were previously reported back in 2012: - http://git.661346.n2.nabble.com/Gitweb-running-as-FCGI-does-not-print-its-output-in-UTF-8-td7573415.html - http://stackoverflow.com/questions/5005104 Signed-off-by: Julien Moutinho <julm+git@sourcephile.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-generate-patch.txt')
0 files changed, 0 insertions, 0 deletions