changeset 6cf0b3311453 in /home/hg/repos/gajim

author: Yann Leboulanger <[email protected]>
branches: 
details:http://hg.gajim.org/gajim?cmd=changeset;node=6cf0b3311453
description: print message to console in correct encoding. Fixes #7652

diffstat:

 src/gajim.py |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r b95ba89c5076 -r 6cf0b3311453 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
@@ -147,7 +147,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         ' + \
@@ -161,7 +161,8 @@
                 '\n  -c, --config-path  ' + \
                     _('Set configuration directory') + \
                 '\n  -l, --loglevel     ' + \
-                    _('Configure logging system') + '\n')
+                    _('Configure logging system') + '\n'
+            print(out.encode(locale.getpreferredencoding()))
             sys.exit()
         elif o in ('-q', '--quiet'):
             logging_helpers.set_quiet()
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to