X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f7896861f734ce044ee8601ba2d8a6959c9d9e..0eabd3c635380a69982b08178391ba8e6f04382b:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 352e229b50..9d093143fe 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -3505,7 +3505,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;