[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)?
----------
assignee: terry.reedy
components: IDLE
messages: 372527
nosy: ned.deily, serhiy.storchaka, taleinat, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: revise setting of iomenu.encoding and .errors
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41152>
_______________________________________
More information about the New-bugs-announce
mailing list