[Python-bugs-list] [ python-Bugs-421878 ] File in a directory with a special chara

noreply@sourceforge.net noreply@sourceforge.net
Sun, 06 May 2001 13:12:57 -0700


Bugs item #421878, was updated on 2001-05-06 13:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=421878&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gábor BORGULYA (borgulya)
Assigned to: Nobody/Anonymous (nobody)
Summary: File in a directory with a special chara

Initial Comment:
Using IDLE I tryed to save my work in the directory

C:\Documents and Settings\tdk.000\Dokumentumok\python\saját

but it failed:

Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> Exception in Tkinter callback
Traceback (most recent call last):
  File "c:\program files\python21\lib\lib-tk\Tkinter.py", line 1285, in __call__
    return apply(self.func, args)
  File "C:\PROGRA~1\Python21\Tools\idle\IOBinding.py", line 145, in save_a_copy
    self.writefile(filename)
  File "C:\PROGRA~1\Python21\Tools\idle\IOBinding.py", line 152, in writefile
    f = open(filename, "w")
UnicodeError: ASCII encoding error: ordinal not in range(128)

After a log of tries I have renamed the directory: (sajat instead of saját)

C:\Documents and Settings\tdk.000\Dokumentumok\python\saját

and the file was finally saved.

I use WIN2000P.

I hope you can fix it.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=421878&group_id=5470