[issue21398] LC_CTYPE=C: pydoc leaves terminal in an unusable state

Stefan Krah report at bugs.python.org
Fri May 2 22:10:48 CEST 2014


Stefan Krah added the comment:

STINNER Victor <report at bugs.python.org> wrote:
> I don't see how to ensure that the terminal state is restored, even on error.

Python2 suppresses the exception until after normal exit (pressing 'q').
I think that behavior is better.

In Python3 you can also get the unusable terminal by pressing Ctrl-C,
i.e. without any UnicodeError.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21398>
_______________________________________


More information about the Python-bugs-list mailing list