在 2026-6-14 20:53, Pali Rohár 写道:
Older Windows versions do not support CP_UTF8 code page and
MB_ERR_INVALID_CHARS flag and signal ERROR_INVALID_PARAMETER
or ERROR_INVALID_FLAGS error.

Properly check for any failure from MultiByteToWideChar() and
WideCharToMultiByte() calls and return error back to the caller.
---
  mingw-w64-crt/misc/mingw_mbwc_convert.c | 65 +++++++++++++++++++++++--
  1 file changed, 61 insertions(+), 4 deletions(-)

Pushed these two, too.


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