X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/caa6e137baa6a5a9f79c7eb3a695c1cf3addfd15..bbee1b4abc13379569607df8f6985ec68dc12231:/src/common/fontmap.cpp diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index 170d32aedd..022d92d0e3 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -489,10 +489,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset, cs.MakeUpper(); - // nl_langinfo() under Solaris returns 646 by default which stands for - // ISO-646, i.e. 7 bit ASCII and we should recognize it to avoid - // warnings about unrecognized encoding on each program startup - if ( cs.empty() || cs == _T("US-ASCII") || cs == _T("646") ) + if ( cs.empty() || cs == _T("US-ASCII") ) { encoding = wxFONTENCODING_DEFAULT; } @@ -746,9 +743,9 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, // message if ( encoding == wxFONTENCODING_SYSTEM ) { - wxFatalError(_("can't load any font, aborting")); + wxLogFatalError(_("can't load any font, aborting")); - // wxFatalError doesn't return + // wxLogFatalError doesn't return } wxString configEntry,