Message161741
| 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:48 | roger.serwy | set | recipients:
+ roger.serwy, terry.reedy, fgracia |
| 2012年05月27日 22:27:47 | roger.serwy | set | messageid: <1338157667.98.0.371635503847.issue14929@psf.upfronthosting.co.za> |
| 2012年05月27日 22:27:47 | roger.serwy | link | issue14929 messages |
| 2012年05月27日 22:27:47 | roger.serwy | create |
|