Roger Serwy <roger.se...@gmail.com> added the comment:

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.

----------
keywords: +patch
Added file: http://bugs.python.org/file25740/prelim_14929.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14929>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to