Skip to content
Snippets Groups Projects
Commit a7a283c0 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

print message to console in correct encoding. Fixes #7652

parent ab9f5dd8
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ def parseOpts():
sys.exit(2)
for o, a in opts:
if o in ('-h', '--help'):
print _('Usage:') + \
out = _('Usage:') + \
'\n gajim [options] filename\n\n' + \
_('Options:') + \
'\n -h, --help ' + \
......@@ -156,6 +156,7 @@ def parseOpts():
_('Set configuration directory') + \
'\n -l, --loglevel ' + \
_('Configure logging system') + '\n'
print out.encode(locale.getpreferredencoding())
sys.exit()
elif o in ('-q', '--quiet'):
logging_helpers.set_quiet()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment