]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
why was this class made a wxControlContainer (rev. 1.7), this doesn't seem to make...
[wxWidgets.git] / src / common / appbase.cpp
index cb97afa9ef744831f23731d6c24dccc98db70783..53d05a50fd3ff6204aed93c85ba926564458928e 100644 (file)
@@ -46,6 +46,8 @@
   #include  <signal.h>      // for SIGTRAP used by wxTrap()
 #endif  //Win/Unix
 
+#include <locale.h>
+
 #if wxUSE_FONTMAP
     #include "wx/fontmap.h"
 #endif // wxUSE_FONTMAP
@@ -146,6 +148,10 @@ wxAppConsole::~wxAppConsole()
 
 bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
 {
+#if wxUSE_INTL
+    GetTraits()->SetLocale();
+#endif // wxUSE_INTL
+
     // remember the command line arguments
     argc = argcOrig;
     argv = argvOrig;
@@ -156,7 +162,7 @@ bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
         // the application name is, by default, the name of its executable file
         wxFileName::SplitPath(argv[0], NULL, &m_appName, NULL);
     }
-#endif
+#endif // !__WXPALMOS__
 
     return true;
 }
@@ -503,6 +509,13 @@ GSocketGUIFunctionsTable* wxConsoleAppTraitsBase::GetSocketGUIFunctionsTable()
 // wxAppTraits
 // ----------------------------------------------------------------------------
 
+#if wxUSE_INTL
+void wxAppTraitsBase::SetLocale()
+{
+    setlocale(LC_ALL, "");
+}
+#endif
+
 #ifdef __WXDEBUG__
 
 bool wxAppTraitsBase::ShowAssertDialog(const wxString& msgOriginal)