diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index a9020f17d1..1362a65773 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -278,7 +278,8 @@ void wxCmdLineParserData::SetArguments(int argc, char **argv) // temporarily change the locale here. The only drawback is that changing // the locale is thread-unsafe but precisely because we're called so early // it's hopefully safe to assume that no other threads had been created yet. - char * const locOld = SetAllLocaleFacets(""); + char * const locOld = SetAllLocaleFacets(NULL); + SetAllLocaleFacets(""); wxON_BLOCK_EXIT1( SetAllLocaleFacets, locOld ); for ( int n = 0; n < argc; n++ )