Fix mbtowc not setting EILSEQ on an Incomplete multibyte sequence for eucJP encoding

This commit is contained in:
Baptiste Daroussin 2015-11-02 22:56:24 +00:00
parent 9ff4faf083
commit e58504783b

View File

@ -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)