This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients alex, benjamin.peterson, nikratio, vajrasky
Date 2013-06-03.07:02:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370242975.08.0.34102591553.issue18116@psf.upfronthosting.co.za>
In-reply-to
Content
This code is pretty broken. I don't think ttys are ever seekable, so the os.fdopen has probably been always failing since 3.0. It thus always leaks an fd to '/dev/tty' if the first os.open succeeds. The whole function should probably be rewriten to work with byte streams encoding the prompt with os.device_encoding(tty_fd) falling back on locale.getpreferredencoding().
History
Date User Action Args
2013-06-03 07:02:55benjamin.petersonsetrecipients: + benjamin.peterson, alex, nikratio, vajrasky
2013-06-03 07:02:55benjamin.petersonsetmessageid: <1370242975.08.0.34102591553.issue18116@psf.upfronthosting.co.za>
2013-06-03 07:02:55benjamin.petersonlinkissue18116 messages
2013-06-03 07:02:54benjamin.petersoncreate