diff --git a/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp b/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp index c126373..d2e56e5 100644 --- a/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp +++ b/src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp @@ -37,6 +37,8 @@ unsigned int PowerShellCoreClrWorker::LaunchClr( _In_ LPCWSTR wszRuntimeVersion, _In_ LPCSTR friendlyName) { + // Allocate a console so that the codepage is setup correctly + AllocConsole(); return commonLib->LaunchCoreCLR(hostWrapper, hostEnvironment, friendlyName); }