From 81b3e01fa30687b806a9ee437d88c00d21a345b2 Mon Sep 17 00:00:00 2001 From: Thorsten Engel Date: Fri, 16 Dec 2005 11:22:57 +0000 Subject: [PATCH] bugfix for transfering unicode data to director git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2679 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/wxbmainframe.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- 2.39.5