MCPcopy Create free account
hub / github.com/bcndev/bytecoin / UnicodeConsoleSetup

Method UnicodeConsoleSetup

src/common/ConsoleTools.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73UnicodeConsoleSetup::UnicodeConsoleSetup() {
74#ifdef _WIN32
75 if (IsValidCodePage(CP_UTF8)) {
76 SetConsoleOutputCP(CP_UTF8);
77 SetConsoleCP(CP_UTF8);
78 }
79 old_buf = std::cout.rdbuf(this);
80#endif
81}
82UnicodeConsoleSetup::~UnicodeConsoleSetup() {
83#ifdef _WIN32
84 std::cout.rdbuf(old_buf);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected