projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58483f0
)
iconv was not returning -1 on most failure
author
Rich Felker
<dalias@aerifal.cx>
Sun, 3 Jul 2011 23:26:12 +0000
(19:26 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 3 Jul 2011 23:26:12 +0000
(19:26 -0400)
this broke most uses of iconv in real-world programs, especially
glib's iconv wrappers.
src/locale/iconv.c
patch
|
blob
|
history
diff --git
a/src/locale/iconv.c
b/src/locale/iconv.c
index e1b00de370214e5412cae448f27775d368071c1d..4ef1477f83a11c5607d81a54ad7a2cb1412c3338 100644
(file)
--- 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;