SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

#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.
R
R David Murray committed
d5aa487cceac54fdf2b5c073157b899b3c8c9c94
Parent: e544f9a