From: Václav Slavík Date: Fri, 11 May 2007 20:00:52 +0000 (+0000) Subject: fixed wxSVGFileDC::write() to output UTF-8 even in ANSI build X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6243633c6308a9353573cc27463e5a8554b61a0c fixed wxSVGFileDC::write() to output UTF-8 even in ANSI build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index 92f539abaf..4810844b53 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -666,7 +666,7 @@ void wxSVGFileDC::DoDrawBitmap(const class wxBitmap & bmp, wxCoord x, wxCoord y void wxSVGFileDC::write(const wxString &s) { - const wxWX2MBbuf buf = s.mb_str(wxConvUTF8); + const wxCharBuffer buf = s.utf8_str(); m_outfile->Write(buf, strlen((const char *)buf)); m_OK = m_outfile->Ok(); }