author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | |
Sun, 3 Jun 2007 15:42:44 +0000 (17:42 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 3 Jun 2007 23:51:53 +0000 (16:51 -0700) | ||
commit | 00f429af7bfaa6a9141bc0ac30995d4fae24836a | |
tree | 3b19bf38164896eb6d2ca8f1199b647e4331dbf0 | tree | snapshot |
parent | 2169368fc183ffb2bda203c52edda77ef6f5147b | commit | diff |
gitweb: Handle non UTF-8 text better
gitweb assumes that everything is in UTF-8. If a text contains invalid
UTF-8 character sequences, the text must be in a different encoding.
This commit introduces $fallback_encoding which would be used as input
encoding if gitweb encounters text with is not valid UTF-8.
Add basic test for this in t/t9500-gitweb-standalone-no-errors.sh
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Tested-by: Alexandre Julliard <julliard@winehq.org>
Tested-by: Ismail Dönmez <ismail@pardus.org.tr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb assumes that everything is in UTF-8. If a text contains invalid
UTF-8 character sequences, the text must be in a different encoding.
This commit introduces $fallback_encoding which would be used as input
encoding if gitweb encounters text with is not valid UTF-8.
Add basic test for this in t/t9500-gitweb-standalone-no-errors.sh
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Tested-by: Alexandre Julliard <julliard@winehq.org>
Tested-by: Ismail Dönmez <ismail@pardus.org.tr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history | |
t/t9500-gitweb-standalone-no-errors.sh | diff | blob | history |