]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxUSE_INTL=0
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 2 May 2007 20:35:03 +0000 (20:35 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 2 May 2007 20:35:03 +0000 (20:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextxml.cpp

index bcff1aa0746ff7bc3636f6d1a850f0d5c078a3d0..2d6df34af1013252f4e1769759e2362e23c33221 100644 (file)
@@ -544,7 +544,10 @@ bool wxRichTextXMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
     {
         if (m_encoding == wxT("<System>"))
         {
+#if wxUSE_INTL
             fileEncoding = wxLocale::GetSystemEncodingName();
+            // if !wxUSE_INTL, we fall back to UTF-8 or ISO-8859-1 below
+#endif
         }
         else
         {