utf8: fix iconv error detection
authorJohn Keeping <redacted>
Sun, 16 Feb 2014 16:06:03 +0000 (16:06 +0000)
committerJunio C Hamano <redacted>
Tue, 18 Feb 2014 23:51:33 +0000 (15:51 -0800)
commitdf5213b70d29e65aaff17d2577e42787e5a272bb
tree0b07154eee43558f2a00d4cc337ae1b55e78b21a
parentaa012e906542dbc533dbc5bafe1c4e0a47bdc59e
utf8: fix iconv error detection

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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
utf8.c
git clone https://git.99rst.org/PROJECT