Mercurial > libervia-backend
diff frontends/src/jp/cmd_input.py @ 2293:cbc989508474
jp (input/csv): fixed encoding issue in debug mode
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 30 Jun 2017 01:08:13 +0200 |
parents | d8e48c850ad2 |
children | 8b37a62336c3 |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_input.py Fri Jun 30 00:54:37 2017 +0200 +++ b/frontends/src/jp/cmd_input.py Fri Jun 30 01:08:13 2017 +0200 @@ -140,9 +140,9 @@ self.disp(u'{indent}{prog} {static} {options} {positionals}'.format( indent = 4*u' ', prog=sys.argv[0], - static = ' '.join(self.args.command).encode('utf-8'), - options = u' '.join([o.encode('utf-8') for o in self._opts]), - positionals = u' '.join([p.encode('utf-8') for p in self._pos]) + static = ' '.join(self.args.command).decode('utf-8'), + options = u' '.join([o.decode('utf-8') for o in self._opts]), + positionals = u' '.join([p.decode('utf-8') for p in self._pos]) )) self.disp(u'\n') else: