LIU Hao wrote:

> 在 2026-9-14 19:39, Kirill Makurin 写道:
>> You're right; `assert` still calls `_assert` by default, so test is going to 
>> fail with CRTs which support Unicode translation modes.
>>
>> I see two options:
>>
>> 1. Define `_UNICODE` before including assert.h, so it calls `_wassert`
>> 2. Remove call to `_setmode`, which makes it a generic test for `assert` 
>> rather than test for `assert` with `stderr` set to Unicode translation mode
>
> Maybe you can add 1 as a new test and name it `t_wassert`, and apply 2 to 
> existing `t_assert`.

That sounds even better; I'll send patches tomorrow.

- Kirill Makurin

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

Reply via email to