backport fix for wxCSConv(wxFONTENCODING_SYSTEM) creation from trunk: use system encoding for DoCreate(), not name which is not handled correctly for ASCII case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3506,7 +3506,7 @@ void wxCSConv::CreateConvIfNeeded() const
|
||||
if ( !m_name && m_encoding == wxFONTENCODING_SYSTEM )
|
||||
{
|
||||
#if wxUSE_INTL
|
||||
self->m_name = wxStrdup(wxLocale::GetSystemEncodingName());
|
||||
self->m_encoding = wxLocale::GetSystemEncoding();
|
||||
#else
|
||||
// fallback to some reasonable default:
|
||||
self->m_encoding = wxFONTENCODING_ISO8859_1;
|
||||
|
Reference in New Issue
Block a user