Terry J. Reedy added the comment: In #11830 I suggested that Shell should be added to this issue. #26327 does the same, as the prompt and output are not code.
At least in 3.x, these mixed code and text files should be encoded utf-8 (which is the same as ascii for all ascii files), as code files are (at least by default). The encoding search and determination in IDBinding.py is a bit baroque. The local encoding should not ever be used for 3.x code. If we do something with #11838 (save runnable code from Shell), the default should then revert to .py. I don't want a patch here to make this excessively difficult. ---------- title: Idle: saving an OutputWindow should default to .txt -> Idle: saving Shell or an OutputWindow should default to .txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21140> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com