Commit Graph

4 Commits

Author SHA1 Message Date
R David Murray d5aa487cce #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.
2014-04-13 22:07:39 -04:00
R David Murray 16dbbae298 #18116: getpass no longer always falls back to stdin.
Also fixes a resource warning that occurred when the fallback is taken.

Patch by Serhiy Storchaka.

(We couldn't figure out how to write tests for this.)
2013-07-10 17:02:24 -04:00
R David Murray f1c42538e4 #17699: Fix the new getpass test failures on windows.
Patch by Zachary Ware.
2013-04-11 17:45:32 -04:00
R David Murray c137f7c065 #17484: Actually add the getpass tests this time. 2013-04-08 08:48:03 -04:00