[ python-Bugs-782686 ] IDE defaults to Mac linefeeds

SourceForge.net noreply at sourceforge.net
Tue Nov 18 17:41:51 EST 2003


Bugs item #782686, was opened at 2003-08-04 10:34
Message generated for change (Comment added) made by jvr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=782686&group_id=5470

Category: Macintosh
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Just van Rossum (jvr)
Summary: IDE defaults to Mac linefeeds

Initial Comment:
The IDE defaults to Mac linefeeds for new files, also in 
MacPython-OSX. In PyEdit.Editor.__init__ the logic for 
initializing self._eoln is  fishy, and also incorrect. It should 
probably use "rU" for reading the files and use f.newlines to 
initialize it.

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

>Comment By: Just van Rossum (jvr)
Date: 2003-11-18 23:41

Message:
Logged In: YES 
user_id=92689

Fixed without moving to "U", should be good enough for now. 
Rev. 1.44, will backport to the 2.3 maintainance branch.

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

Comment By: Jack Jansen (jackjansen)
Date: 2003-08-15 14:58

Message:
Logged In: YES 
user_id=45365

Look at where _eoln is set in __init__: in the "if not path" leg it's 
set to os.linesep, in the other leg of the if it isn't set.

Then just below that it's overwritten in the if '\n' in text.

I think the second block should go, and the else part of the if not 
path should use open("rU") and inspect f.newlines (defaulting to 
os.linesep if f.newlines is None or a tuple).

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

Comment By: Just van Rossum (jvr)
Date: 2003-08-13 16:36

Message:
Logged In: YES 
user_id=92689

Can you elaborate on the "incorrect" bit? I agree with the need to 
switch to "rU".

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

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



More information about the Python-bugs-list mailing list