@matheusbsbs / matheus-bagliano / commits / ac44f3e7c0
Fork 0

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>

Junio C Hamano committed Dec 23, 2005 at 23:56 UTC ac44f3e7c05390531004d567481004c96d1b262c
1 file changed +1 -1
mailinfo.c
+1 -1
@@ -472,7 +472,7 @@ static void convert_to_utf8(char *line, char *charset)
472 char *in, *out;
473 size_t insize, outsize, nrc;
474 char outbuf[4096]; /* cheat */
475 - static char latin_one[] = "latin-1";
475 + static char latin_one[] = "latin1";
476 char *input_charset = *charset ? charset : latin_one;
477 iconv_t conv = iconv_open(metainfo_charset, input_charset);
478