Commit 3042fac1 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Input uses preferred encoding

parent 6e24ad30
......@@ -88,7 +88,7 @@ class _command_init(object):
_in=None, _out=None, _err=None):
self._in, self._out, self._err = (
_in or stdin, _out or stdout, _err or stderr)
self._in = codecs.getreader('utf-8')(_in or stdin)
self._in = codecs.getreader(pref_enc)(_in or stdin)
self._out = codecs.getwriter(pref_enc)(_out or stdout)
self._err = codecs.getwriter(pref_enc)(_err or stderr)
self.required = getattr(self, 'required', None)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment