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;
|
||||
toobig:
|
||||
err = E2BIG;
|
||||
x = -1;
|
||||
goto end;
|
||||
starved:
|
||||
err = EINVAL;
|
||||
x = -1;
|
||||
end:
|
||||
errno = err;
|
||||
return x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue