summaryrefslogtreecommitdiff
path: root/mailinfo.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-24 07:56:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-24 07:56:52 (GMT)
commitac44f3e7c05390531004d567481004c96d1b262c (patch)
tree67e2cf7306295bea182c2b6b1f7afd49fdae88d9 /mailinfo.c
parent9a84074d08e2e816a3310eb34ac69b584faf817b (diff)
downloadgit-ac44f3e7c05390531004d567481004c96d1b262c.zip
git-ac44f3e7c05390531004d567481004c96d1b262c.tar.gz
git-ac44f3e7c05390531004d567481004c96d1b262c.tar.bz2
mailinfo: iconv does not like "latin-1" -- should spell it "latin1"
This was a stupid typo that did not follow http://www.iana.org/assignments/character-sets Long noticed but neglected by JC, but finally reported by Marco. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailinfo.c')
-rw-r--r--mailinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailinfo.c b/mailinfo.c
index 9f95f37..0265a29 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -472,7 +472,7 @@ static void convert_to_utf8(char *line, char *charset)
char *in, *out;
size_t insize, outsize, nrc;
char outbuf[4096]; /* cheat */
- static char latin_one[] = "latin-1";
+ static char latin_one[] = "latin1";
char *input_charset = *charset ? charset : latin_one;
iconv_t conv = iconv_open(metainfo_charset, input_charset);