diff options
Diffstat (limited to 'src/mongo/shell/dbshell.cpp')
| -rw-r--r-- | src/mongo/shell/dbshell.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp index 4d71d2b8d19..5934e862076 100644 --- a/src/mongo/shell/dbshell.cpp +++ b/src/mongo/shell/dbshell.cpp @@ -1043,10 +1043,6 @@ int _main( int argc, char* argv[], char **envp ) { #ifdef _WIN32 int wmain( int argc, wchar_t* argvW[] ) { static mongo::StaticObserver staticObserver; - UINT initialConsoleInputCodePage = GetConsoleCP(); - UINT initialConsoleOutputCodePage = GetConsoleOutputCP(); - SetConsoleCP( CP_UTF8 ); - SetConsoleOutputCP( CP_UTF8 ); int returnCode; try { WindowsCommandLine wcl( argc, argvW ); @@ -1056,8 +1052,6 @@ int wmain( int argc, wchar_t* argvW[] ) { cerr << "exception: " << e.what() << endl; returnCode = 1; } - SetConsoleCP( initialConsoleInputCodePage ); - SetConsoleOutputCP( initialConsoleOutputCodePage ); ::_exit(returnCode); } #else // #ifdef _WIN32 |
