summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-07 00:36:49 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-07 00:36:49 +0000
commit3d9ed2e409fab9c86519f3c0d4e118b29d17018b (patch)
tree474795a63c07e1e5d91f813892633f943fd25c3f /src
parent6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6 (diff)
downloadpoezio-3d9ed2e409fab9c86519f3c0d4e118b29d17018b.tar.gz
poezio-3d9ed2e409fab9c86519f3c0d4e118b29d17018b.tar.bz2
poezio-3d9ed2e409fab9c86519f3c0d4e118b29d17018b.tar.xz
poezio-3d9ed2e409fab9c86519f3c0d4e118b29d17018b.zip
also, that
Diffstat (limited to 'src')
-rw-r--r--src/gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index 21d69a0a..a5521452 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -159,7 +159,7 @@ class Gui(object):
doupdate()
char=read_char(stdscr)
try: # if this is not a valide utf-8 char, discard it
- char.encode('utf-8')
+ char.decode('utf-8')
except UnicodeDecodeError:
continue
# search for keyboard shortcut