diff options
author | Tad Marshall <tad@10gen.com> | 2013-07-27 08:24:37 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2013-07-29 13:31:11 -0400 |
commit | ad46ea3318bd584ac27cca7b90fe6f68948c2530 (patch) | |
tree | c811a6bee9550178efbb2ddec855946981ac2e9c | |
parent | ec902210eb2a7e9c5e4818f8c39328da493a5df4 (diff) | |
download | mongo-ad46ea3318bd584ac27cca7b90fe6f68948c2530.tar.gz |
SERVER-10359 Remove code page switching from Windows shell
-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 |