]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMotif/ANSI can't cope with UTF-8
authorJulian Smart <julian@anthemion.co.uk>
Thu, 16 Mar 2006 18:59:12 +0000 (18:59 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 16 Mar 2006 18:59:12 +0000 (18:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 459f3189d6253e235eca93a5c02d37d87ea0c990..8d11807aecac94933925fca03ab8c5c6744239d5 100644 (file)
@@ -2395,7 +2395,7 @@ wxFontEncoding wxLocale::GetSystemEncoding()
         // 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
         // don't even try to use it in this case
-#if !wxUSE_UNICODE && defined(__WXGTK__)
+#if !wxUSE_UNICODE && (defined(__WXGTK__) || defined(__WXMOTIF__))
         if ( enc == wxFONTENCODING_UTF8 )
         {
             // the most similar supported encoding...