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 ned.deily
Recipients georg.brandl, naguilera, ned.deily
Date 2011-01-24.03:06:59
SpamBayes Score 1.1946885e-07
Marked as misclassified No
Message-id <1295838420.3.0.725118550994.issue10974@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-01-24 03:07:00ned.deilysetrecipients: + ned.deily, georg.brandl, naguilera
2011-01-24 03:07:00ned.deilysetmessageid: <1295838420.3.0.725118550994.issue10974@psf.upfronthosting.co.za>
2011-01-24 03:06:59ned.deilylinkissue10974 messages
2011-01-24 03:06:59ned.deilycreate