summaryrefslogtreecommitdiff
path: root/backends/aptcc/apt-messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/aptcc/apt-messages.cpp')
-rw-r--r--backends/aptcc/apt-messages.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/aptcc/apt-messages.cpp b/backends/aptcc/apt-messages.cpp
index 15e548ec..b95c0dee 100644
--- a/backends/aptcc/apt-messages.cpp
+++ b/backends/aptcc/apt-messages.cpp
@@ -22,6 +22,8 @@
#include "apt-messages.h"
+#include "apt-utils.h"
+
#include <string>
#include <sstream>
#include <cstdio>
@@ -54,12 +56,11 @@ bool show_errors(PkBackend *backend, PkErrorEnum errorCode, bool errModify)
}
if (!errors.str().empty()) {
- pk_backend_error_code(backend, errorCode, errors.str().c_str());
+ pk_backend_error_code(backend, errorCode, utf8(errors.str().c_str()));
}
if ((errModify) && (!messages.str().empty())) {
- cout << "Emitting backend message:" << messages.str() << endl;
- pk_backend_message(backend, messageCode, messages.str().c_str());
+ pk_backend_message(backend, messageCode, utf8(messages.str().c_str()));
}
}
@@ -78,6 +79,6 @@ bool show_warnings(PkBackend *backend, PkMessageEnum message)
}
if (!warnings.str().empty()) {
- pk_backend_message(backend, message, warnings.str().c_str());
+ pk_backend_message(backend, message, utf8(warnings.str().c_str()));
}
}