You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/kbkaiser'closed_at=<Date2007-10-09.23:13:37.668>created_at=<Date2007-09-08.02:27:20.283>labels= ['expert-IDLE', 'type-bug']
title='Idle - Save (buffer) - closes IDLE and does not save file (Windows XP)'updated_at=<Date2008-01-06.22:29:45.601>user='https://bugs.python.org/infixum'
The saving bug is a string/bytes issue, simply fixed by replaced line
366 in Lib\idlelib\IOBinding.py with:
chars = chars.replace(b"\n", self.eol_convention.encode('ASCII'))
Your solution is better than my suggestion, but has two minor bugs:
eol_convention must be initialized somewhere. For instance, opening a
new editor window (Ctrl+N) and saving it fails because
self.eol_convention is not defined. I agree that is shouldn't be a class
attribute, but it must be intialized in __init__.
You meant chars = self.encode(text), right? (otherwise the eol change
is discraded...)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: