@matheusbsbs / matheus-bagliano / commits / 6264500604
Fork 0

builtin-mailinfo.c: use "ISO8859-1" instead of "latin1" as fallback encoding

Some platforms do not understand the character encoding "latin1" which is another name for "ISO8859-1". So use "ISO8859-1" instead which all tested platforms understand. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Casey committed May 18, 2009 at 18:44 UTC 62645006044c7453439f6ad8dafc984441ac54b6
1 file changed +1 -1
builtin-mailinfo.c
+1 -1
@@ -480,7 +480,7 @@ static const char *guess_charset(const struct strbuf *line, const char *target_c
480 if (is_utf8(line->buf))
481 return NULL;
482 }
483 - return "latin1";
483 + return "ISO8859-1";
484 }
485
486 static void convert_to_utf8(struct strbuf *line, const char *charset)