use _out_encoding() to let the user override the encoding (e.g. cp65001/utf-8 throws Exception)

This commit is contained in:
Guilherme Danno 2016-04-22 19:02:58 -03:00
parent bf1b06f0c7
commit 172498fd33

View file

@ -193,7 +193,7 @@ def input_(prompt=None):
except EOFError:
raise UserError(u'stdin stream ended while input required')
return resp.decode(sys.stdin.encoding or 'utf8', 'ignore')
return resp.decode(_out_encoding(), 'ignore')
def input_options(options, require=False, prompt=None, fallback_prompt=None,