[Python-bugs-list] [ python-Bugs-545655 ] cannot save buffer

noreply@sourceforge.net noreply@sourceforge.net
Mon, 22 Apr 2002 10:34:35 -0700


Bugs item #545655, was opened at 2002-04-18 09:52
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=545655&group_id=5470

>Category: IDLE
Group: Python 2.1.2
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Didier (dalais_dj)
Assigned to: Nobody/Anonymous (nobody)
Summary: cannot save buffer

Initial Comment:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python21\lib\lib-tk\Tkinter.py", line 1285, 
in __call__
    return apply(self.func, args)
  File "C:\Python21\Tools\idle\IOBinding.py", line 
126, in save
    self.save_as(event)
  File "C:\Python21\Tools\idle\IOBinding.py", line 
136, in save_as
    if self.writefile(filename):
  File "C:\Python21\Tools\idle\IOBinding.py", line 
154, in writefile
    f.write(chars)
UnicodeError: ASCII encoding error: ordinal not in 
range(128)



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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-04-22 13:34

Message:
Logged In: YES 
user_id=6380

I'm closing this now. We have a number of bug report for
this, and a proposed solution in the IDLEfork project:

http://sourceforge.net/tracker/index.php?func=detail&aid=508973&group_id=9579&atid=309579

Also note that in CVS we've got a patch that at least
prevents overwriting the file with empty contents when this
happens.

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

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