summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-02-10 19:46:37 +0000
committerGitHub <noreply@github.com>2018-02-10 19:46:37 +0000
commitd03cd3f582818651157aa9588e5723cdaa81dc3e (patch)
tree4eec0b1d29370a36759300c5dcb5cd61c77e5b92 /alot/ui.py
parent7091048adf3e4455fb2e3adfe27ce1e10165a5e3 (diff)
parent09c969a8305ff920cece6cdde63ac1a97a210675 (diff)
Merge pull request #1193 from three-comrades/fix_lang_c
Fix `LANG=C alot` with custom bindings.
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 68a21f6d..52dc3656 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -75,6 +75,9 @@ class UI(object):
# alarm handle for callback that clears input queue (to cancel alarm)
self._alarm = None
+ # force urwid to pass key events as unicode, independent of LANG
+ urwid.set_encoding('utf-8')
+
# create root widget
global_att = settings.get_theming_attribute('global', 'body')
mainframe = urwid.Frame(urwid.SolidFill())