mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
cm_codecvt: Add support for the Windows console output code page
This is distinct from the Windows ANSI code page.
This commit is contained in:
@@ -19,6 +19,12 @@ codecvt::codecvt(Encoding e)
|
||||
#endif
|
||||
{
|
||||
switch (e) {
|
||||
case codecvt::ConsoleOutput:
|
||||
#if defined(_WIN32)
|
||||
m_noconv = false;
|
||||
m_codepage = GetConsoleOutputCP();
|
||||
break;
|
||||
#endif
|
||||
case codecvt::ANSI:
|
||||
#if defined(_WIN32)
|
||||
m_noconv = false;
|
||||
|
||||
@@ -15,7 +15,8 @@ public:
|
||||
None,
|
||||
UTF8,
|
||||
UTF8_WITH_BOM,
|
||||
ANSI
|
||||
ANSI,
|
||||
ConsoleOutput,
|
||||
};
|
||||
|
||||
#ifndef CMAKE_BOOTSTRAP
|
||||
|
||||
Reference in New Issue
Block a user