Source cleaning. wxMotif/OS2 adjustements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1600,7 +1600,9 @@ bool wxLocale::Init(int language, int flags)
|
||||
wxString locale;
|
||||
|
||||
// Set the locale:
|
||||
#if defined(__UNIX__) && !defined(__WXMAC__)
|
||||
#if defined(__OS2__)
|
||||
wxMB2WXbuf retloc = wxSetlocale(LC_ALL , wxEmptyString);
|
||||
#elif defined(__UNIX__) && !defined(__WXMAC__)
|
||||
if (language == wxLANGUAGE_DEFAULT)
|
||||
locale = wxEmptyString;
|
||||
else
|
||||
@@ -1771,8 +1773,6 @@ bool wxLocale::Init(int language, int flags)
|
||||
wxLogError(wxT("Cannot set locale to '%s'."), locale.c_str());
|
||||
return false;
|
||||
}
|
||||
#elif defined(__WXPM__)
|
||||
wxMB2WXbuf retloc = wxSetlocale(LC_ALL , wxEmptyString);
|
||||
#else
|
||||
return false;
|
||||
#define WX_NO_LOCALE_SUPPORT
|
||||
@@ -3554,4 +3554,3 @@ void wxLocale::InitLanguagesDB()
|
||||
// --- --- --- generated code ends here --- --- ---
|
||||
|
||||
#endif // wxUSE_INTL
|
||||
|
||||
|
Reference in New Issue
Block a user