summaryrefslogtreecommitdiff
path: root/src/mongo/shell/dbshell.cpp
diff options
context:
space:
mode:
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>2013-10-18 10:31:13 +0200
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>2013-10-18 10:31:13 +0200
commit65585c90b12d6523bea75a2aebaae2a2fdf9e641 (patch)
treeccb3081edfe67f988844af661a2bf93aa95ae09f /src/mongo/shell/dbshell.cpp
parente3904bf97e74cbbe5dde6b3abc3e797ad7d26b5d (diff)
Imported Upstream version 2.4.6upstream/2.4.6
Diffstat (limited to 'src/mongo/shell/dbshell.cpp')
-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