wxFONTENCODING_BIG5,
wxFONTENCODING_SHIFT_JIS,
wxFONTENCODING_GB2312,
+ wxFONTENCODING_ISO2022_JP,
};
// the descriptions for them
wxTRANSLATE( "BIG5" ),
wxTRANSLATE( "SHIFT-JIS" ),
wxTRANSLATE( "GB-2312" ),
+ wxTRANSLATE( "ISO-2022-JP" ),
};
// and the internal names (these are not translated on purpose!)
{ wxT( "BIG5" ), wxT("big5"), NULL },
{ wxT( "SJIS" ), wxT( "SHIFT-JIS" ), wxT( "SHIFT_JIS" ), NULL },
{ wxT( "GB2312" ), NULL },
+ { wxT( "ISO-2022-JP" ), NULL },
};
wxCOMPILE_TIME_ASSERT( WXSIZEOF(gs_encodingDescs) == WXSIZEOF(gs_encodings), EncodingsArraysNotInSync );
// config usage customisation
// ----------------------------------------------------------------------------
+
+static wxString gs_defaultConfigPath(FONTMAPPER_ROOT_PATH);
+
/* static */
-const wxChar *wxFontMapperBase::GetDefaultConfigPath()
+const wxString& wxFontMapperBase::GetDefaultConfigPath()
{
- return FONTMAPPER_ROOT_PATH;
+ // NB: we return const wxString& and not wxString for compatibility
+ // with 2.8 that returned const wxChar*
+ return gs_defaultConfigPath;
}
void wxFontMapperBase::SetConfigPath(const wxString& prefix)