[New-bugs-announce] [issue41152] IDLE: revise setting of iomenu.encoding and .errors
Terry J. Reedy
report at bugs.python.org
Sun Jun 28 13:56:42 EDT 2020
New submission from Terry J. Reedy <tjreedy at udel.edu>:
When testing and on Windows, iomenu.encoding and .errors are set to utf-8 and surrogateescape*. When running otherwise, these are set with baroque code I don't understand. (Currently lines 31 to 61.)
1. Combine the two conditional statements for testing and Windows.
2. Ned, on my Catalina Macbook, the 30-line 'else' sections sets encoding, errors to 'utf-8', 'strict'. Should there ever be any other result on Mac we care about? If not, I would like to directly set them, as on Windows.
3. Serhiy, does the 'baroque code' look right to you, for Linux (or *nix in general)?
nosy: ned.deily, serhiy.storchaka, taleinat, terry.reedy
stage: needs patch
title: IDLE: revise setting of iomenu.encoding and .errors
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce