[issue42020] interpreter hangs forever on invalid input

Eryk Sun report at bugs.python.org
Mon Oct 12 15:27:00 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

In Windows 10 2004, CSI is currently supported by the console host (conhost.exe) if virtual-terminal mode is enabled. Windows Terminal Preview supports many more C1 control codes, as will conhost.exe in the next release of Windows 10. This should be 'fun' considering the C1 controls block isn't reserved by Windows filesystems. CMD and PowerShell depend on the C0 controls being reserved and depend on the C1 controls not being implemented. They don't implement any escaping of control characters when listing filenames in a directory, unlike a tradition POSIX shell. Now that the console and Windows Terminal implement C1 controls, maybe PowerShell can be updated to escape them in file listings, but I don't see what can be done for CMD, which doesn't support string literals with escape sequences.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42020>
_______________________________________


More information about the Python-bugs-list mailing list