You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mbtowc() function can only return the number of bytes consumed to convert a
valid multibyte character or 0 if the input points to a null character or -1 if
the input points to an invalid multibyte sequence.
before this change, if _MBTOWC call is __ascii_mbtowc() and n = 0 it will return
-2 in retval and the mbtowc return the retval as it is which is non-standard it
should return -1 if the conversion is invalid which is the case with n = 0
Signed-off-by: Ahmed Shehab <[email protected]>
0 commit comments