From 62645006044c7453439f6ad8dafc984441ac54b6 Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Mon, 18 May 2009 18:44:41 -0500 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- builtin-mailinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c index c68187e2e..92637ac0b 100644 --- a/builtin-mailinfo.c +++ b/builtin-mailinfo.c @@ -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) -- 2.26.2