]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:15:01 +0000 (15:15 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2018 23:15:01 +0000 (15:15 -0800)
commit65c32bbe85862ab5eb52a0d4340e844e13d0f7ee
treef5eaa9231d665e5739c58462f4b24d0054cf64f9
parent74ebbaeb566dc10031756430ec5c896e56d0e491
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]