summaryrefslogtreecommitdiff
path: root/builtin-mailinfo.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2009-05-18 18:44:41 -0500
committerJunio C Hamano <gitster@pobox.com>2009-05-18 20:53:15 -0700
commit62645006044c7453439f6ad8dafc984441ac54b6 (patch)
treedbd7c4fccc2f202e98d773fe9dce89210e7d7639 /builtin-mailinfo.c
parented1e3985e445e4cb4558056f8a31c366f2bf2634 (diff)
downloadgit-62645006044c7453439f6ad8dafc984441ac54b6.tar.gz
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>
Diffstat (limited to 'builtin-mailinfo.c')
-rw-r--r--builtin-mailinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index c68187e2e9..92637ac0ba 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)