Message372546
I got the 'within iomenu' part a bit wrong. To open a file to edit, iomenu.IOBinging('IO').open tells filelist to use IO.loadfile. This reads bytes 'so that we can handle end-of-line convention ourselves'. (I suspect that this predates 3.x and might not be needed any more.) IO.loadfile calls IO._decode which looks for a utf-8 BOM, looks for a coding cookie, tries ascii (not needed in 3.x), tries utf-8, and asks the user for an encoding, using iomenu.encoding as the initial value in the query box. This box is deprecated in the sense that for 3.x, a python file should either be utf-8 or have an encoding cookie. |
|
Date |
User |
Action |
Args |
2020-06-29 05:36:21 | terry.reedy | set | recipients:
+ terry.reedy, taleinat, ned.deily, serhiy.storchaka |
2020-06-29 05:36:21 | terry.reedy | set | messageid: <1593408981.4.0.110043340245.issue41152@roundup.psfhosted.org> |
2020-06-29 05:36:21 | terry.reedy | link | issue41152 messages |
2020-06-29 05:36:21 | terry.reedy | create | |
|