This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients ned.deily, serhiy.storchaka, taleinat, terry.reedy
Date 2020-06-28.17:56:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593367002.84.0.77588386021.issue41152@roundup.psfhosted.org>
In-reply-to
Content
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)?
History
Date User Action Args
2020-06-28 17:56:42terry.reedysetrecipients: + terry.reedy, taleinat, ned.deily, serhiy.storchaka
2020-06-28 17:56:42terry.reedysetmessageid: <1593367002.84.0.77588386021.issue41152@roundup.psfhosted.org>
2020-06-28 17:56:42terry.reedylinkissue41152 messages
2020-06-28 17:56:42terry.reedycreate