force printing utf8 [afterall it is what i18n will return] else we were tb on could not decode using ascii
This commit is contained in:
parent
861a52c3ed
commit
01e5bdd7e2
|
@ -45,9 +45,9 @@ _ = i18n._
|
||||||
i18n.init()
|
i18n.init()
|
||||||
|
|
||||||
def send_error(error_message):
|
def send_error(error_message):
|
||||||
''' Writes error message to stderr and exits'''
|
'''Writes error message to stderr and exits'''
|
||||||
print >> sys.stderr, error_message
|
print >> sys.stderr, error_message.encode('utf-8')
|
||||||
sys.exit(1)
|
sys.exit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import dbus
|
import dbus
|
||||||
|
@ -209,9 +209,9 @@ class GajimRemote:
|
||||||
self.command = sys.argv[1]
|
self.command = sys.argv[1]
|
||||||
if self.command == 'help':
|
if self.command == 'help':
|
||||||
if self.argv_len == 3:
|
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:
|
else:
|
||||||
print self.compose_help()
|
print self.compose_help().encode('utf-8')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
self.init_connection()
|
self.init_connection()
|
||||||
|
|
Loading…
Reference in New Issue