Message141081
| Author |
ledave123 |
| Recipients |
ledave123 |
| Date |
2011年07月25日.09:52:54 |
| SpamBayes Score |
3.0300613e-05 |
| Marked as misclassified |
No |
| Message-id |
<1311587575.82.0.250460007364.issue12636@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm on Windows with cp1252 as the default encoding.
When I use -*- coding: c1252 -*- I get no problems.
When I use -*- coding: utf-8 -*- IDLE -r still opens the file with cp1252 encoding.
Python.exe opens the file with utf-8 correctly.
I think the problem is in Python32\Lib\idlelib\PyShell.py line 585:
In class ModifiedInterpreter:
def execfile(self, filename, source=None):
"Execute an existing file"
if source is None:
source = open(filename, "r").read() # this is the bug IMHO |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月25日 09:52:55 | ledave123 | set | recipients:
+ ledave123 |
| 2011年07月25日 09:52:55 | ledave123 | set | messageid: <1311587575.82.0.250460007364.issue12636@psf.upfronthosting.co.za> |
| 2011年07月25日 09:52:55 | ledave123 | link | issue12636 messages |
| 2011年07月25日 09:52:54 | ledave123 | create |
|