Ned Deily <n...@acm.org> added the comment: IDLE 3.x currently does not specify an explicit encoding when reading or writing the recent files list (~/.idlerc/recent-files.lst) and it defaults to "errors=strict". So IDLE 3.x is vulnerable to crashes if any of the recent files contain characters that can not be decoded using the LANG environment that IDLE is running under. That can happen if the user changes LANG or the recent-files.lst was updated by IDLE 2.x or, on OS X, when running as IDLE.app. The solution in the attached patch is to explicitly force the encoding of the file paths to utf_8 and to set "errors=replace".
Since this has the potential to crash IDLE, I propose it for inclusion in 3.2rc2. ---------- keywords: +patch nosy: +georg.brandl stage: needs patch -> commit review title: IDLE 3.2 not loading on double-click in Finder, OSX 10.6 -> IDLE 3.x can crash decoding recent file list Added file: http://bugs.python.org/file20500/issue10974.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10974> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com