summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2013-07-27 08:24:37 -0400
committerTad Marshall <tad@10gen.com>2013-07-29 13:31:11 -0400
commitad46ea3318bd584ac27cca7b90fe6f68948c2530 (patch)
treec811a6bee9550178efbb2ddec855946981ac2e9c
parentec902210eb2a7e9c5e4818f8c39328da493a5df4 (diff)
downloadmongo-ad46ea3318bd584ac27cca7b90fe6f68948c2530.tar.gz
SERVER-10359 Remove code page switching from Windows shell
-rw-r--r--src/mongo/shell/dbshell.cpp6
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