Replies: 2 comments
-
|
You can check the comment above this call, it says: // We can check if _Console_handle actually refers to a console or not by checking the
// return value of GetConsoleMode().If |
Beta Was this translation helpful? Give feedback.
-
|
The answer by @jovibor is on the right track. Further elaboration:
The value that indicates Unicode mode is the value returned in "_Console_mode". "_Is_unicode_console" is not an accurate name and that's not the variable that indicates Unicode mode or not. "_Is_unicode_console" is a pass/fail status value that has nothing to do with the console mode (e.g. Unicode). See this example: Then, if status is true (OK), the actual value of interest is _Console_mode. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The current file location:
STL/stl/src/print.cpp
Line 43 in 48db51b
GetConsoleMode()says that console is Unicode. But that's not true, or I didn't understand something? Sorry for (possibly) stupid questionBeta Was this translation helpful? Give feedback.
All reactions