aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbe/command/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py
index 6b1c050..f8bbb1f 100644
--- a/libbe/command/base.py
+++ b/libbe/command/base.py
@@ -408,7 +408,7 @@ class StdInputOutput (InputOutput):
input_encoding = libbe.util.encoding.get_input_encoding()
if output_encoding == None:
output_encoding = libbe.util.encoding.get_output_encoding()
- stdin = codecs.getwriter(input_encoding)(sys.stdin)
+ stdin = codecs.getreader(input_encoding)(sys.stdin)
stdin.encoding = input_encoding
stdout = codecs.getwriter(output_encoding)(sys.stdout)
stdout.encoding = output_encoding