From: Václav Slavík Date: Sun, 9 Nov 2003 12:27:42 +0000 (+0000) Subject: fixed wxConvLocal to work with C locale (and probably some others) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4d312c222ee634bb8597ffa9cfa71b9414d67145 fixed wxConvLocal to work with C locale (and probably some others) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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