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 roger.serwy
Recipients fgracia, roger.serwy, terry.reedy
Date 2012-05-27.22:27:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338157667.98.0.371635503847.issue14929@psf.upfronthosting.co.za>
In-reply-to
Content
The GrepDialog opens a file using plain "open", without specifying the encoding or how to handle errors. The docs for "open" says that "the default encoding is platform dependent (whatever locale.getpreferredencoding() returns)..." This can be problematic, as files can have different encodings and GrepDialog at present has no way to detect file encodings.

Attached is a preliminary patch to replace code points if the default decoder encounters errors.
History
Date User Action Args
2012-05-27 22:27:48roger.serwysetrecipients: + roger.serwy, terry.reedy, fgracia
2012-05-27 22:27:47roger.serwysetmessageid: <1338157667.98.0.371635503847.issue14929@psf.upfronthosting.co.za>
2012-05-27 22:27:47roger.serwylinkissue14929 messages
2012-05-27 22:27:47roger.serwycreate