iconv was not returning -1 on most failure
this broke most uses of iconv in real-world programs, especially glib's iconv wrappers.
This commit is contained in:
parent
58483f0afd
commit
2f0c415ceb
1 changed files with 2 additions and 0 deletions
|
|
@ -559,9 +559,11 @@ ilseq:
|
||||||
goto end;
|
goto end;
|
||||||
toobig:
|
toobig:
|
||||||
err = E2BIG;
|
err = E2BIG;
|
||||||
|
x = -1;
|
||||||
goto end;
|
goto end;
|
||||||
starved:
|
starved:
|
||||||
err = EINVAL;
|
err = EINVAL;
|
||||||
|
x = -1;
|
||||||
end:
|
end:
|
||||||
errno = err;
|
errno = err;
|
||||||
return x;
|
return x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue