]> git.saurik.com Git - wxWidgets.git/commitdiff
blind build fix for STL builds
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 19 Mar 2009 19:39:38 +0000 (19:39 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 19 Mar 2009 19:39:38 +0000 (19:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/xlocale.cpp

index b2b035aed19af79b86999f53d1833cc8465bc07d..05f7a5b7d33a4cee5d44f1a06c0c369f1fb74054 100644 (file)
@@ -134,21 +134,21 @@ void wxXLocale::Init(const char *loc)
         wxString buf(loc);
         wxString buf2;
         buf2 = buf + wxS(".UTF-8");
-        m_locale = newlocale(LC_ALL_MASK, buf2, NULL);
+        m_locale = newlocale(LC_ALL_MASK, buf2.c_str(), NULL);
         if ( !m_locale )
         {
             buf2 = buf + wxS(".utf-8");
-            m_locale = newlocale(LC_ALL_MASK, buf2, NULL);
+            m_locale = newlocale(LC_ALL_MASK, buf2.c_str(), NULL);
         }
         if ( !m_locale )
         {
             buf2 = buf + wxS(".UTF8");
-            m_locale = newlocale(LC_ALL_MASK, buf2, NULL);
+            m_locale = newlocale(LC_ALL_MASK, buf2.c_str(), NULL);
         }
         if ( !m_locale )
         {
             buf2 = buf + wxS(".utf8");
-            m_locale = newlocale(LC_ALL_MASK, buf2, NULL);
+            m_locale = newlocale(LC_ALL_MASK, buf2.c_str(), NULL);
         }
     }