Fix mbtowc not setting EILSEQ on an Incomplete multibyte sequence for eucJP encoding
This commit is contained in:
parent
2cf4425aa8
commit
7edeed0f0f
@ -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