Re: mbrtowc: don't replace mbstate_t on MSVC

2020-01-02 Thread Bruno Haible
This patch also caused test failures on MSVC. All caused by the fact that the original mbrtowc (which the code now uses, instead of an emulation through mbtowc) stores a wide character even when reporting an incomplete multibyte character. This patch fixes it. 2020-01-02 Bruno Haible

Re: mbrtowc: don't replace mbstate_t on MSVC

2020-01-02 Thread Bruno Haible
> mbrtowc: Don't replace mbstate_t on MSVC. > * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore > a missing mbsinit function on native Windows. This patch was incomplete; to complete it, I committed this: diff --git a/ChangeLog b/ChangeLog

mbrtowc: don't replace mbstate_t on MSVC

2020-01-02 Thread Bruno Haible
; if (iret != 2) return 2; ret = wcrtomb (NULL, wc, NULL); if (ret != 1) return 3; return 0; } 2020-01-02 Bruno Haible mbrtowc: Don't replace mbstate_t on MSVC. * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN):