X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1d58ddc1557d0bd454ed9ccd58d7761ed242d67..cb362386011324baf3949aa9bbd7c545e5ebed69:/src/gtk/font.cpp?ds=sidebyside diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index 738981520b..97c51a8968 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -217,7 +217,7 @@ wxFont::wxFont( GdkFont *WXUNUSED(font), char *xFontName ) if ( registry == _T("ISO8859") ) { int cp; - if ( wxSscanf(encoding, "%d", &cp) == 1 ) + if ( wxSscanf(encoding, wxT("%d"), &cp) == 1 ) { M_FONTDATA->m_encoding = (wxFontEncoding)(wxFONTENCODING_ISO8859_1 + cp - 1); @@ -226,7 +226,7 @@ wxFont::wxFont( GdkFont *WXUNUSED(font), char *xFontName ) else if ( registry == _T("MICROSOFT") ) { int cp; - if ( wxSscanf(encoding, "cp125%d", &cp) == 1 ) + if ( wxSscanf(encoding, wxT("cp125%d"), &cp) == 1 ) { M_FONTDATA->m_encoding = (wxFontEncoding)(wxFONTENCODING_CP1250 + cp);