summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-09-27 18:39:45 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-09-27 18:39:45 +0100
commitb3ebcc1e48958149bae0b21b9ac72f3326c4284a (patch)
tree8414b9bd87c1366eeba2f113ac3bc8e33b942fb3 /alot/helper.py
parentaafb0b9040134b91590a5f4cfb9809fe1d4fa0da (diff)
fix: double decoding of mailcap handlers output
issue #68
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 4d941ed4..aa5c7953 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -142,7 +142,7 @@ def cmd_output(command_line):
args = shlex.split(command_line.encode('ascii', errors='ignore'))
try:
output = subprocess.check_output(args)
- output = output.decode(urwid.util.detected_encoding)
+ output = output.decode(urwid.util.detected_encoding, errors='replace')
except subprocess.CalledProcessError:
return None
except OSError: