X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/395a670159b7751da633f8be9e5b4aff2ad55942..4d073429a06c885db6440b79d754d8316d847223:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 470c5d12bb..0a3c746a53 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1215,7 +1215,7 @@ void wxMsgCatalogFile::FillHash(wxMessagesHash& hash, bool convertEncoding) cons if ( convertEncoding ) { wxFontEncoding targetEnc = wxFONTENCODING_SYSTEM; - wxFontEncoding enc = wxFontMapper::Get()->CharsetToEncoding(charset, FALSE); + wxFontEncoding enc = wxFontMapper::Get()->CharsetToEncoding(m_charset, FALSE); if ( enc == wxFONTENCODING_SYSTEM ) { convertEncoding = FALSE; // unknown encoding @@ -2238,6 +2238,8 @@ wxFontEncoding wxLocale::GetSystemEncoding() { return wxFONTENCODING_CP950; } +#elif defined(__WXMAC__) + return wxMacGetFontEncFromSystemEnc( CFStringGetSystemEncoding() ) ; #elif defined(__UNIX_LIKE__) && wxUSE_FONTMAP wxString encname = GetSystemEncodingName(); if ( !encname.empty() ) @@ -2420,14 +2422,14 @@ const wxChar *wxLocale::GetString(const wxChar *szOrigString, if ( szDomain != NULL ) { wxLogTrace(_T("i18n"), - _T("string '%s'[%d] not found in domain '%s' for locale '%s'."), + _T("string '%s'[%ld] not found in domain '%s' for locale '%s'."), szOrigString, n, szDomain, m_strLocale.c_str()); } else { wxLogTrace(_T("i18n"), - _T("string '%s'[%d] not found in locale '%s'."), + _T("string '%s'[%ld] not found in locale '%s'."), szOrigString, n, m_strLocale.c_str()); } }