don't force UTF-8 encoding to ISO-8859-1 for GTK+ 2, it may have been necessary for...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Aug 2006 11:05:03 +0000 (11:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Aug 2006 11:05:03 +0000 (11:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 2bb34b78cf162eea0ed40c9be8237b330aef33fe..ad84ce7ba43aef476e0ab07a2a5ac3c0a53b079c 100644 (file)
@@ -2451,9 +2451,10 @@ wxFontEncoding wxLocale::GetSystemEncoding()
         wxFontEncoding enc = wxFontMapperBase::GetEncodingFromName(encname);
 
         // on some modern Linux systems (RedHat 8) the default system locale
-        // is UTF8 -- but it isn't supported by wxGTK in ANSI build at all so
+        // is UTF8 -- but it isn't supported by wxGTK1 in ANSI build at all so
         // don't even try to use it in this case
-#if !wxUSE_UNICODE && (defined(__WXGTK__) || defined(__WXMOTIF__))
+#if !wxUSE_UNICODE && \
+        ((defined(__WXGTK__) && !defined(__WXGTK20__)) || defined(__WXMOTIF__))
         if ( enc == wxFONTENCODING_UTF8 )
         {
             // the most similar supported encoding...