Code

builtin-mailinfo.c: use "ISO8859-1" instead of "latin1" as fallback encoding
authorBrandon Casey <casey@nrlssc.navy.mil>
Mon, 18 May 2009 23:44:41 +0000 (18:44 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2009 03:53:15 +0000 (20:53 -0700)
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>
builtin-mailinfo.c

index c68187e2e937704bfa8382950151e78349901345..92637ac0bae82d0b88e267b572a51a75299cda5c 100644 (file)
@@ -480,7 +480,7 @@ static const char *guess_charset(const struct strbuf *line, const char *target_c
                if (is_utf8(line->buf))
                        return NULL;
        }
-       return "latin1";
+       return "ISO8859-1";
 }
 
 static void convert_to_utf8(struct strbuf *line, const char *charset)