-#elif wxUSE_FONTMAP
- wxASSERT_MSG( msgIdCharset.empty(),
- wxS("non-ASCII msgid languages only supported if wxUSE_WCHAR_T=1") );
-
- wxEncodingConverter converter;
- if ( convertEncoding )
- {
- wxFontEncoding targetEnc = wxFONTENCODING_SYSTEM;
- wxFontEncoding enc = wxFontMapperBase::Get()->CharsetToEncoding(m_charset, false);
- if ( enc == wxFONTENCODING_SYSTEM )
- {
- convertEncoding = false; // unknown encoding
- }
- else
- {
- targetEnc = wxLocale::GetSystemEncoding();
- if (targetEnc == wxFONTENCODING_SYSTEM)
- {
- wxFontEncodingArray a = wxEncodingConverter::GetPlatformEquivalents(enc);
- if (a[0] == enc)
- // no conversion needed, locale uses native encoding
- convertEncoding = false;
- if (a.GetCount() == 0)
- // we don't know common equiv. under this platform
- convertEncoding = false;
- targetEnc = a[0];
- }
- }
-
- if ( convertEncoding )
- {
- converter.Init(enc, targetEnc);
- }
- }
-#endif // wxUSE_WCHAR_T/!wxUSE_WCHAR_T
- (void)convertEncoding; // get rid of warnings about unused parameter
-