From 79f7126722eb183441d7574ee9b1a2fe95de0563 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 19 May 2010 06:41:00 -0400 Subject: [PATCH] Use getreader (not getwriter) for wrapping stdin --- libbe/command/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2