git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57284
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/intl.h"
#include "wx/utils.h" // for wxSetEnv
#include "wx/intl.h"
#include "wx/utils.h" // for wxSetEnv
-static wxLocale gs_localeDefault(wxLANGUAGE_ENGLISH);
+static wxLocale gs_localeDefault;
+ // NOTE: don't init it here as it needs a wxAppTraits object
+ // and thus must be init-ed after creation of the wxInitializer
+ // class in the main()
// find the name of the language from its value
static const wxChar *GetLangName(int lang)
// find the name of the language from its value
static const wxChar *GetLangName(int lang)
{
wxPuts(_T("*** Testing wxLocale::GetSystemLanguage ***"));
{
wxPuts(_T("*** Testing wxLocale::GetSystemLanguage ***"));
+ gs_localeDefault.Init(wxLANGUAGE_ENGLISH);
+
static const wxChar *langStrings[] =
{
NULL, // system default
static const wxChar *langStrings[] =
{
NULL, // system default
wxString type, val;
for ( size_t n = 0; frame.GetParam(n, &type, &name, &val); n++ )
{
wxString type, val;
for ( size_t n = 0; frame.GetParam(n, &type, &name, &val); n++ )
{
- printf("\t%s %s = %s\n", (const char*)type.mb_str(),
- (const char*)name.mb_str(),
+ printf("\t%s %s = %s\n", (const char*)type.mb_str(),
+ (const char*)name.mb_str(),
(const char*)val.mb_str());
}
}
(const char*)val.mb_str());
}
}
static const wxString filename = _T("foo");
wxFFileInputStream in(TESTFILE_ZIP);
static const wxString filename = _T("foo");
wxFFileInputStream in(TESTFILE_ZIP);
- wxZipInputStream istr(in);
+ wxZipInputStream istr(in);
wxZipEntry entry(filename);
istr.OpenEntry(entry);
wxZipEntry entry(filename);
istr.OpenEntry(entry);