Skip to content

Commit

Permalink
mailinfo: fix 'fatal: cannot convert from utf-8 to utf-8'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jul 24, 2007
1 parent a781785 commit 7296096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-mailinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ static void convert_to_utf8(char *line, const char *charset)
return;
}

if (!strcmp(metainfo_charset, charset))
return;
out = reencode_string(line, metainfo_charset, charset);
if (!out)
die("cannot convert from %s to %s\n",
Expand Down

0 comments on commit 7296096

Please sign in to comment.