在 2026-2-12 14:12, Kirill Makurin 写道:
Hello,

When Pali sent patches which added __mingw_isleadbyte_cp, I suggested we use it 
in __mingw_mbrtowc_cp instead of CRT's isleadbyte. These two patches do it.

Second patch moves __mingw_mbrtowc_cp and __mingw_wcrtomb_cp from import 
libraries to libmingwx, which I think is a good idea. This allows us to use 
them in any mingw-w64 code; their primary limitation right now is that they 
only handles conversions using SBCS and DBCS code pages.

UCRT `mbstate_t` is quite different from MSVCRT one. For UCRT, if these functions do not operate on `mbstate_t` in the same way as Microsoft functions, then it's just a world of unspecified behavior.

If `__mingw_mbrtowc_cp()` would be useful for UCRT, it had better be implemented separately. (However I know it would be rather insufficient.)



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to