Fix mbtowc not setting EILSEQ on an Incomplete multibyte sequence for eucJP encoding
This commit is contained in:
parent
9ff4faf083
commit
e58504783b
@ -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 New Issue
Block a user