]> git.sur5r.net Git - bacula/bacula/commitdiff
bugfix for transfering unicode data to director
authorThorsten Engel <thorsten.engel@matrix-computer.com>
Fri, 16 Dec 2005 11:22:57 +0000 (11:22 +0000)
committerThorsten Engel <thorsten.engel@matrix-computer.com>
Fri, 16 Dec 2005 11:22:57 +0000 (11:22 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2679 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/wxbmainframe.cpp

index c158ccba933fdb75fbe7390051dfc2d9c71503d5..e9550f28a6f08097e53bc0ad31fb72ce6e3d6899 100644 (file)
@@ -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));