mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix mbtowc not setting EILSEQ on an Incomplete multibyte sequence for eucJP encoding
This commit is contained in:
parent
9ff4faf083
commit
e58504783b
1 changed files with 1 additions and 0 deletions
|
|
@ -375,6 +375,7 @@ _EUC_mbrtowc_impl(wchar_t * __restrict pwc, const char * __restrict s,
|
|||
/* Incomplete multibyte sequence */
|
||||
es->want = want - i;
|
||||
es->ch = wc;
|
||||
errno = EILSEQ;
|
||||
return ((size_t)-2);
|
||||
}
|
||||
if (pwc != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue