Message248365
| Author |
sanad |
| Recipients |
kamisky, python-dev, roger.serwy, sanad, serhiy.storchaka, terry.reedy |
| Date |
2015年08月10日.18:59:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1439233145.72.0.0787078110316.issue23672@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
These observations are noted when the system locale is set to 'iso-88591'
1. Ok, for some reason I'm able to execute this command without any error in Linux (idle window is opening with a file name as 'astralE.py'). Because the character 'E' is automatically being shown and treated as 'E' in both terminal and python command line interpreter(similar for chars 'Z' = 'z' and 'P' = 'P').
2. But i'm unable to save/make a file with filname 'astralE.py' and hence unable to run it. The following errors are thrown then :
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/sanad/devpy/pessoc/cpython/Lib/tkinter/__init__.py", line 1549, in __call__
return self.func(*args)
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/MultiCall.py", line 176, in handler
r = l[i](event)
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/IOBinding.py", line 339, in save
self.save_as(event)
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/IOBinding.py", line 353, in save_as
if self.writefile(filename):
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/IOBinding.py", line 379, in writefile
with open(filename, "wb") as f:
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001d53c' in position 39: ordinal not in range(128)
I'm trying to figure out the root of the problem, feel free to give your inputs |
|