From 01e5bdd7e2528458cf9331b400afbc3f4ff82b44 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 8 Feb 2006 23:35:04 +0000 Subject: [PATCH] force printing utf8 [afterall it is what i18n will return] else we were tb on could not decode using ascii --- src/gajim-remote.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gajim-remote.py b/src/gajim-remote.py index c464fbf1d..aa43b2d26 100755 --- a/src/gajim-remote.py +++ b/src/gajim-remote.py @@ -45,9 +45,9 @@ _ = i18n._ i18n.init() def send_error(error_message): - ''' Writes error message to stderr and exits''' - print >> sys.stderr, error_message - sys.exit(1) + '''Writes error message to stderr and exits''' + print >> sys.stderr, error_message.encode('utf-8') + sys.exit() try: import dbus @@ -209,9 +209,9 @@ class GajimRemote: self.command = sys.argv[1] if self.command == 'help': if self.argv_len == 3: - print self.help_on_command(sys.argv[2]) + print self.help_on_command(sys.argv[2]).encode('utf-8') else: - print self.compose_help() + print self.compose_help().encode('utf-8') sys.exit() self.init_connection()