From 81bcacf6953de4d363aa1503da322a3ca43ceff2 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Mon, 30 Jul 2012 14:26:06 +0200 Subject: [PATCH] Enable logging unicode characters --- spectrum/src/main.cpp | 3 ++- src/admininterface.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index 8e1c1e1a..d2da5047 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -123,7 +123,8 @@ int main(int argc, char **argv) bool no_daemon = false; std::string config_file; std::string jid; - + + setlocale(LC_ALL, ""); #ifndef WIN32 if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) { diff --git a/src/admininterface.cpp b/src/admininterface.cpp index 18704c93..e7ac7d0e 100644 --- a/src/admininterface.cpp +++ b/src/admininterface.cpp @@ -291,10 +291,10 @@ void AdminInterface::handleQuery(Swift::Message::ref message) { boost::split(args, body, boost::is_any_of(" ")); if (args.size() == 2) { if (m_userRegistration->unregisterUser(args[1])) { - message->setBody("User unregistered."); + message->setBody("User '" + args[1] + "' unregistered."); } else { - message->setBody("Registration failed: User is not registered"); + message->setBody("Registration failed: User '" + args[1] + "' is not registered"); } } else {