]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/fontdlg.cpp
Do not use wxS in array of const wxChar*
[wxWidgets.git] / src / gtk / fontdlg.cpp
index 8cb4f89917ef712f03525c54952e4ddeb157dcaf..83b7c23ff15d382a16eeb191758853c8257fc21a 100644 (file)
@@ -129,7 +129,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent)
         else
         {
             // this is not supposed to happen!
-            wxFAIL_MSG(_T("font is ok but no native font info?"));
+            wxFAIL_MSG(wxT("font is ok but no native font info?"));
         }
     }
 
@@ -142,7 +142,7 @@ wxFontDialog::~wxFontDialog()
 
 void wxFontDialog::SetChosenFont(const char *fontname)
 {
-    m_fontData.SetChosenFont(wxFont( wxString::FromAscii(fontname) ));
+    m_fontData.SetChosenFont(wxFont( wxString::FromUTF8(fontname) ));
 }
 
 #endif // wxUSE_FONTDLG && !__WXGPE__