author | Junio C Hamano <junkio@cox.net> | |
Wed, 5 Jul 2006 21:17:49 +0000 (14:17 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 6 Jul 2006 07:10:49 +0000 (00:10 -0700) | ||
commit | b75bf2c3f08b70a3e4850867290a8c215d2c1abf | |
tree | 164eba30f02b30ee8c9dd3712ebe821aa4fadd07 | tree | snapshot |
parent | ac83aa2e1fffcb4e7560431ddc15b288dc237634 | commit | diff |
mailinfo: assume input is latin-1 on the header as we do for the body
When the input mbox does not identify what encoding it is in,
and already have RFC2047 stripped away, we cannot tell what
encoding the header text is in. For body text, when the message
does not say what charset it is in, we fall back to assume
latin-1 input when converting to utf8. This should be done
consistently to the header as well.
Signed-off-by: Junio C Hamano <junkio@cox.net>
When the input mbox does not identify what encoding it is in,
and already have RFC2047 stripped away, we cannot tell what
encoding the header text is in. For body text, when the message
does not say what charset it is in, we fall back to assume
latin-1 input when converting to utf8. This should be done
consistently to the header as well.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-mailinfo.c | diff | blob | history |