adding textencoding for classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2245,7 +2245,13 @@ wxFontEncoding wxLocale::GetSystemEncoding()
|
||||
return wxFONTENCODING_CP950;
|
||||
}
|
||||
#elif defined(__WXMAC__)
|
||||
return wxMacGetFontEncFromSystemEnc( CFStringGetSystemEncoding() ) ;
|
||||
TextEncoding encoding = 0 ;
|
||||
#if TARGET_CARBON
|
||||
encoding = CFStringGetSystemEncoding() ;
|
||||
#else
|
||||
UpgradeScriptInfoToTextEncoding ( smSystemScript , kTextLanguageDontCare , kTextRegionDontCare , NULL , &encoding ) ;
|
||||
#endif
|
||||
return wxMacGetFontEncFromSystemEnc( encoding ) ;
|
||||
#elif defined(__UNIX_LIKE__) && wxUSE_FONTMAP
|
||||
wxString encname = GetSystemEncodingName();
|
||||
if ( !encname.empty() )
|
||||
|
Reference in New Issue
Block a user