From dafd34cb67d6df9d4917af4cc9e61d2b7857136f Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 1 Oct 2011 20:34:26 +0200 Subject: ext.widestring: fixed input of unicode in console for python2 --- ranger/ext/widestring.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ranger/ext/widestring.py b/ranger/ext/widestring.py index 28f38e54..a17e7649 100644 --- a/ranger/ext/widestring.py +++ b/ranger/ext/widestring.py @@ -34,6 +34,7 @@ def uchars(string): """Return a list of characters in a string""" if not PY3: string = string.decode('utf-8', 'ignore') + return [c.encode('utf-8', 'ignore') for c in string] return list(string) -- cgit 1.4.1-2-gfad0