X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a58d4f4d49a00dc9059fd0f7129d5735d21482ef..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/common/strconv.cpp?ds=sidebyside diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 7c86dd16e3..dd806d2c1c 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -1454,7 +1454,7 @@ void wxCSConv::CreateConvIfNeeded() const // encoding for this system if ( !m_name && m_encoding == wxFONTENCODING_SYSTEM ) { - self->m_encoding = wxLocale::GetSystemEncoding(); + self->m_name = wxStrdup(wxLocale::GetSystemEncodingName()); } #endif // wxUSE_INTL