diff options
Diffstat (limited to 'gpg_wrapper.cpp')
-rw-r--r-- | gpg_wrapper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp index df3e1fa..9c43777 100644 --- a/gpg_wrapper.cpp +++ b/gpg_wrapper.cpp @@ -93,8 +93,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD gpg_mutex = CreateMutex(NULL, FALSE, NULL); - setlocale( LC_ALL, "C" ); - success = CreateProcess(NULL, (TCHAR*)commandline.c_str(), NULL, NULL, TRUE, CREATE_NEW_CONSOLE, NULL, NULL, &sinfo, &pri); + success = CreateProcess(NULL, (TCHAR*)commandline.c_str(), NULL, NULL, TRUE, CREATE_NEW_CONSOLE | CREATE_UNICODE_ENVIRONMENT, _T("LANGUAGE=en@quot\0"), NULL, &sinfo, &pri); if (!success) { |