commit | d5aa487cceac54fdf2b5c073157b899b3c8c9c94 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Sun Apr 13 22:07:39 2014 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Sun Apr 13 22:07:39 2014 -0400 |
tree | e9532a4bb5bd51eeefd53dc818b8b448cd411a44 | |
parent | e544f9a27eec202d4a959dd2a255d8ce05aee663 [diff] |
#21169: fix getpass to use replace error handler on UnicodeEncodeError. If the input stream encoding couldn't encode one or more of the non-ascii characters in the prompt, it would fail, throwing a UnicodeEncodeError. Now if that happens we re-encoding using the 'replace' error handler. Patch by Kushal Das.