[issue10974] IDLE 3.x can crash decoding recent file list
report at bugs.python.org
Mon Jan 24 04:07:00 CET 2011
Ned Deily <nad at 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.
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 <report at bugs.python.org>
More information about the Python-bugs-list