sanad added the comment:

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 'š¯”¼' is automatically being shown and treated as 'E' in both terminal 
and python command line interpreter(similar for chars 'š¯’µ' = 'z' and 'š¯’«' = 'P').

2. But i'm unable to save/make a file with filname 'astralš¯”¼.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

----------

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

Reply via email to