From: Thorsten Engel Date: Fri, 16 Dec 2005 11:22:57 +0000 (+0000) Subject: bugfix for transfering unicode data to director X-Git-Tag: Release-1.38.3~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81b3e01fa30687b806a9ee437d88c00d21a345b2;p=bacula%2Fbacula bugfix for transfering unicode data to director git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2679 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/wx-console/wxbmainframe.cpp b/bacula/src/wx-console/wxbmainframe.cpp index c158ccba93..e9550f28a6 100644 --- a/bacula/src/wx-console/wxbmainframe.cpp +++ b/bacula/src/wx-console/wxbmainframe.cpp @@ -760,7 +760,10 @@ void wxbMainFrame::Print(wxString str, int status) void wxbMainFrame::Send(wxString str) { if (ct != NULL) { - ct->Write(str.mb_str(*wxConvCurrent)); + /* wxString may contain everything in UNICODE + * -> convert to UTF-8 and send to director + */ + ct->Write (str.mb_str(wxConvUTF8)); typeCtrl->SetValue(wxT("")); consoleCtrl->SetDefaultStyle(wxTextAttr(*wxRED)); consoleCtrl->AppendText(wxbUtils::ConvertToPrintable(str));