From: Junio C Hamano Date: Sat, 24 Dec 2005 07:56:52 +0000 (-0800) Subject: mailinfo: iconv does not like "latin-1" -- should spell it "latin1" X-Git-Tag: v1.0.4^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ac44f3e7c05390531004d567481004c96d1b262c;p=git.git 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 --- diff --git a/mailinfo.c b/mailinfo.c index 9f95f376..0265a29a 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);