]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxConvLocal to work with C locale (and probably some others)
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 9 Nov 2003 12:27:42 +0000 (12:27 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 9 Nov 2003 12:27:42 +0000 (12:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 7c86dd16e3944d33ba2ce9add34fe30ec984141e..dd806d2c1c4fd60a683c4ad45ee5f9293e844cc9 100644 (file)
@@ -1454,7 +1454,7 @@ void wxCSConv::CreateConvIfNeeded() const
         // encoding for this system
         if ( !m_name && m_encoding == wxFONTENCODING_SYSTEM )
         {
         // 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
 
         }
 #endif // wxUSE_INTL