git-browser.cgi: fix handling of latin-1 charactersmaster
commit71d1bccd6fee8207d1b333cd970313e8e115aeb0
authorKyle J. McKay <mackyle@gmail.com>
Tue, 16 Jul 2013 19:30:03 +0000 (16 12:30 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 16 Jul 2013 19:30:03 +0000 (16 12:30 -0700)
tree5d21b18afe0b823aaa2f7c51501e7582f4dcd8a1
parentcdb9ff0315b99948a7aa943d9b56be4d079007d3
git-browser.cgi: fix handling of latin-1 characters

Handle commit characters the same way gitweb.perl does by
attempting to use UTF-8 encoding for them and if that's not
valid then using the ISO-8859-1 encoding for them.

This is done on a line-by-line basis so that, for example,
the author name may end up being treated as ISO-8859-1
while the commit message is treated as UTF-8.
git-browser.cgi