git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35645
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-wxString wxMBConv_iconv::ms_wcCharsetName = NULL;
+wxString wxMBConv_iconv::ms_wcCharsetName;
bool wxMBConv_iconv::ms_wcNeedsSwap = false;
wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
bool wxMBConv_iconv::ms_wcNeedsSwap = false;
wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
if (ICONV_FAILED(res, insz))
{
wxLogLastError(wxT("iconv"));
if (ICONV_FAILED(res, insz))
{
wxLogLastError(wxT("iconv"));
- wxLogError(_("Conversion to charset '%s' doesn't work."), name);
+ wxLogError(_("Conversion to charset '%s' doesn't work."),
+ name.c_str());
}
else // ok, can convert to this encoding, remember it
{
}
else // ok, can convert to this encoding, remember it
{
{
wxLogTrace(TRACE_STRCONV,
wxT("\"%s\" -> \"%s\" works but not the converse!?"),
{
wxLogTrace(TRACE_STRCONV,
wxT("\"%s\" -> \"%s\" works but not the converse!?"),
- ms_wcCharsetName.c_str(), cname);
+ ms_wcCharsetName.c_str(), cname.data());