[Issue 23312] Crash when calling writeln in WinMain
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 12 08:28:09 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23312
Richard Cattermole <alphaglosined at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alphaglosined at gmail.com
--- Comment #5 from Richard Cattermole <alphaglosined at gmail.com> ---
It appears on Microsoft's end that _setmode is expected to assert out if
anything isn't right.
For example:
> Unicode mode is for wide print functions (for example, wprintf) and is not supported for narrow print functions. Use of a narrow print function on a Unicode mode stream triggers an assert.
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode?view=msvc-170
Realistically though std.stdio shouldn't be used for console output and
therefore that particular bit of code shouldn't exist to assert out.
--
More information about the Digitalmars-d-bugs
mailing list