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

This commit is contained in:
bapt 2015-11-02 22:56:24 +00:00
parent 2cf4425aa8
commit 7edeed0f0f

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)