#include <signal.h> // for SIGTRAP used by wxTrap()
#endif //Win/Unix
+#include <locale.h>
+
#if wxUSE_FONTMAP
#include "wx/fontmap.h"
#endif // wxUSE_FONTMAP
bool wxAppConsole::Initialize(int& argcOrig, wxChar **argvOrig)
{
+#if wxUSE_INTL
+ GetTraits()->SetLocale();
+#endif // wxUSE_INTL
+
// remember the command line arguments
argc = argcOrig;
argv = 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;
}
// wxAppTraits
// ----------------------------------------------------------------------------
+#if wxUSE_INTL
+void wxAppTraitsBase::SetLocale()
+{
+ setlocale(LC_ALL, "");
+}
+#endif
+
#ifdef __WXDEBUG__
bool wxAppTraitsBase::ShowAssertDialog(const wxString& msgOriginal)