Merge 6a6de7add2326905b89258b2dd383f255b69625e into 54d60d8ebaf0034dc485a56bbb08f9f1356d7545

This commit is contained in:
Tim Rühsen 2026-07-30 16:43:36 -07:00 committed by GitHub
commit 88c757a032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,6 +76,9 @@ char *simple_recode(const iconv_t handle, const char *str)
if (err != (size_t) -1)
break; /* success */
if (outbytes_remaining == 0)
errno = E2BIG;
switch (errno) {
case EINVAL: /* incomplete multibyte sequence */
case EILSEQ: /* invalid multibyte sequence */