]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
Compilation fix for wxCStrData handling.
[wxWidgets.git] / src / common / strconv.cpp
index 352e229b50d8f8b0f8eff192f10304ea771ab13e..9d093143fe7f60cade95290da2010884826be7fc 100644 (file)
@@ -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;