utf8: fix iconv error detection
authorJohn Keeping <john@keeping.me.uk>
Sun, 16 Feb 2014 16:06:03 +0000 (16:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2014 23:51:33 +0000 (15:51 -0800)
iconv(3) returns "(size_t) -1" on error. Make sure that we cast the
"-1" properly when checking for this.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found