- wxFontEncodingArray a = wxEncodingConverter::GetPlatformEquivalents(encoding);
- if (a.GetCount() != 0 && a[0] != encoding)
+ #if wxUSE_UNICODE
+ #define CORRECT_STR(str, conv) \
+ str = wxString((str).mb_str(wxConvISO8859_1), conv)
+ #else
+ #define CORRECT_STR(str, conv) \
+ str = wxString((str).wc_str(conv), wxConvLocal)
+ #endif
+ wxCSConv conv(encoding);
+ int i;
+ for (i = IndexOld; i < m_IndexCnt; i++)