]> granicus.if.org Git - python/commit
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Feb 2018 23:40:12 +0000 (15:40 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2018 23:40:12 +0000 (15:40 -0800)
commit9fad857444d90b9c6c36c31f5f07e57f390a70f2
tree0470fe6c43284bff2bf7c54c62fe8b7b0ded5ba0
parent46daf39453023767eef3b6876d4a34996e124397
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

Using the system and place-dependent default encoding for open()
is a bad idea for IDLE's system and location-independent files.
(cherry picked from commit 688722cedd6437910ff185ecf94fb3b749ad37f2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/idle_test/test_textview.py
Lib/idlelib/textview.py
Misc/NEWS.d/next/IDLE/2018-02-12-17-22-48.bpo-32837.-33QPl.rst [new file with mode: 0644]