diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index e6341247b3..8813954b64 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -824,7 +824,7 @@ void wxCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) // Get extent of month-name + year wxCoord monthw, monthh; - wxString headertext = m_date.Format("%B %Y"); + wxString headertext = m_date.Format(wxT("%B %Y")); dc.GetTextExtent(headertext, &monthw, &monthh); // draw month-name centered above weekdays diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 03aa8f13d2..561102d3f5 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1577,7 +1577,7 @@ bool wxPostScriptDC::StartDoc( const wxString& message ) m_printData.SetFilename(filename); } - m_pstream = fopen( m_printData.GetFilename().fn_str(), "w+" ); + m_pstream = wxFopen( m_printData.GetFilename().fn_str(), wxT("w+") ); if (!m_pstream) {