From 2f0c415cebfedff0e4eb49b743a591a4c15d454e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 3 Jul 2011 19:26:12 -0400 Subject: iconv was not returning -1 on most failure this broke most uses of iconv in real-world programs, especially glib's iconv wrappers. --- src/locale/iconv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/locale') diff --git a/src/locale/iconv.c b/src/locale/iconv.c index e1b00de3..4ef1477f 100644 --- a/src/locale/iconv.c +++ b/src/locale/iconv.c @@ -559,9 +559,11 @@ ilseq: goto end; toobig: err = E2BIG; + x = -1; goto end; starved: err = EINVAL; + x = -1; end: errno = err; return x; -- cgit v1.2.1