在 2026-7-2 23:54, Kirill Makurin 写道:
Pali Rohár <[email protected]> wrote:I would like to spend some more time on trying to fix the _assert function, rather than removing the current workaround as it is the current changes.I disagree that `_assert` needs to be fixed. Its inability to write to Unicode streams is consistent with stdio I/O functions and functions such as `perror`. The only thing that makes `_assert` special is that it is being used for assert(). If anything, I think this fix needs to go into `_wassert`; e.g. make it switch mode to `_O_TEXT` in CRTs which may redirect to OS msvcrt.dll, which in turns allows them to enable Unicode translation mode on `stderr`.
If there's still disagreement about this change, it doesn't look like a clear signal for it to be checked in.Because Microsoft CRT calls `_wassert()`, this looks like a correct direction to move. By default GCC assumes source files are in UTF-8 which has an effect on the encoding of `__FILE__`, so non-ASCII paths in messages might become gibberish.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
