The thing is that MinGW compiled program has problems with printing non-ascii chars on console through wcout, the output may show characters from different codepage or be completely blank. But winapi WriteConsoleW
works perfectly. So I ask if there is a possibility to change behavior of << operator so it would aways invoke winapi method.
(I didn't find any examples how to do it and I'm new to c++, there is lot of examples how to overload an object but not how to do it with string or wide char array.)