changeset dabb86f96777 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=dabb86f96777 description: print message to console in correct encoding. Fixes #7652
diffstat:
src/gajim.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r dede4d2cb554 -r dabb86f96777 src/gajim.py --- a/src/gajim.py Sat Mar 01 21:29:46 2014 +0100 +++ b/src/gajim.py Sun Mar 02 11:26:52 2014 +0100 @@ -141,7 +141,7 @@ 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 @@ _('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()