diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2013-01-23 19:50:14 +0200 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2013-01-23 19:50:14 +0200 |
commit | 209f86fb28c81cbb62b7177be554ed0ef41e1ae5 (patch) | |
tree | 1436638d2aa925d536d340f0cb3389bcceb3a116 /src | |
parent | 4fadd04f7e194eb6cee909c6c2f51d6e8c0fcd48 (diff) | |
download | vdr-plugin-webvideo-209f86fb28c81cbb62b7177be554ed0ef41e1ae5.tar.gz vdr-plugin-webvideo-209f86fb28c81cbb62b7177be554ed0ef41e1ae5.tar.bz2 |
Default to UTF-8 if stdin.encoding is None
Diffstat (limited to 'src')
-rw-r--r-- | src/webvicli/webvicli/menu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webvicli/webvicli/menu.py b/src/webvicli/webvicli/menu.py index 61a5c92..20278c6 100644 --- a/src/webvicli/webvicli/menu.py +++ b/src/webvicli/webvicli/menu.py @@ -81,7 +81,7 @@ class MenuItemTextField: return {self.name: self.value} def activate(self): - self.value = unicode(raw_input('%s> ' % self.label), sys.stdin.encoding) + self.value = unicode(raw_input('%s> ' % self.label), sys.stdin.encoding or 'utf-8') return None |