@matheusbsbs / matheus-bagliano / commits / 7296096c9d
Fork 0

mailinfo: fix 'fatal: cannot convert from utf-8 to utf-8'

For some reason, I got this error message. Maybe it does not make sense, but then we should not really try to convert the text when it is not necessary. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jul 24, 2007 at 01:03 UTC 7296096c9d7e9fa12901c02fd1d12f4f996043e2
1 file changed +2
builtin-mailinfo.c
+2
@@ -529,6 +529,8 @@ static void convert_to_utf8(char *line, const char *charset)
529 return;
530 }
531
532 + if (!strcmp(metainfo_charset, charset))
533 + return;
534 out = reencode_string(line, metainfo_charset, charset);
535 if (!out)
536 die("cannot convert from %s to %s\n",