| 71 | } |
| 72 | |
| 73 | UnicodeConsoleSetup::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 | } |
| 82 | UnicodeConsoleSetup::~UnicodeConsoleSetup() { |
| 83 | #ifdef _WIN32 |
| 84 | std::cout.rdbuf(old_buf); |
nothing calls this directly
no outgoing calls
no test coverage detected