How does "_setmode" in Visual Studio CRT interact with "std :: wcout"?

According to “Ordinary Wisdom is False,” CRT does a fair job of smoothing out inconsistencies when processing Unicode in a Win32 console if the corresponding flag is set to stdout. However, I do not use style functions cstdiohere - I use a library iostream. How does it _setmodeinteract with standard threads std::wcout, std::wclogand std::wcerr(if at all?). If this cannot be used with threads, is it possible, how can equivalent behavior be obtained?

Answers that work for either VS2008 or VS2010 will work - I don't worry about anything before.

+3
source share
1 answer

This is not from memory. I have long asked the question when wprintf () will print correctly, but wcout <will not.

+1
source

Source: https://habr.com/ru/post/1784111/


All Articles