Remove unnecessary wxMac check from Unix code not used under Mac
This file is not compiled under Mac, where src/osx/core/uilocale.mm is used, so there is no need to check for __WXMAC__ here. No real changes.
This commit is contained in:
@@ -184,10 +184,8 @@ static const char *wxSetlocaleTryUTF8(int c, const wxString& lc)
|
|||||||
const char *l = NULL;
|
const char *l = NULL;
|
||||||
|
|
||||||
// NB: We prefer to set UTF-8 locale if it's possible and only fall back to
|
// NB: We prefer to set UTF-8 locale if it's possible and only fall back to
|
||||||
// non-UTF-8 locale if it fails, but this is not necessary under the
|
// non-UTF-8 locale if it fails.
|
||||||
// supported macOS versions where xx_YY locales are just aliases to
|
#if wxUSE_UNICODE
|
||||||
// xx_YY.UTF-8 anyhow.
|
|
||||||
#if wxUSE_UNICODE && !defined(__WXMAC__)
|
|
||||||
if ( !lc.empty() )
|
if ( !lc.empty() )
|
||||||
{
|
{
|
||||||
wxString buf(lc);
|
wxString buf(lc);
|
||||||
@@ -213,7 +211,7 @@ static const char *wxSetlocaleTryUTF8(int c, const wxString& lc)
|
|||||||
|
|
||||||
// if we can't set UTF-8 locale, try non-UTF-8 one:
|
// if we can't set UTF-8 locale, try non-UTF-8 one:
|
||||||
if ( !l )
|
if ( !l )
|
||||||
#endif // wxUSE_UNICODE && !__WXMAC__
|
#endif // wxUSE_UNICODE
|
||||||
l = wxSetlocale(c, lc);
|
l = wxSetlocale(c, lc);
|
||||||
|
|
||||||
return l;
|
return l;
|
||||||
|
|||||||
Reference in New Issue
Block a user