This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cannot save buffer
Type: Stage:
Components: IDLE Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dalais_dj, gvanrossum
Priority: normal Keywords:

Created on 2002-04-18 13:52 by dalais_dj, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg10411 - (view) Author: Didier (dalais_dj) Date: 2002-04-18 13:52
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)

msg10412 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-04-22 17:34
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.
History
Date User Action Args
2022-04-10 16:05:14adminsetgithub: 36463
2002-04-18 13:52:21dalais_djcreate