[Python-3000] [Python-Dev] Universal newlines support in Python 3.0

Blake Winton bwinton at latte.ca
Tue Aug 14 03:51:45 CEST 2007


Guido van Rossum wrote:
> On 8/13/07, Russell E Owen <rowen at cesmail.net> wrote:
>> In article <87wsw3p5em.fsf at uwakimon.sk.tsukuba.ac.jp>,
>>  "Stephen J. Turnbull" <stephen at xemacs.org> wrote:
>>> I have run into files that intentionally have more than one newline
>>> convention used (mbox and Babyl mail folders, with messages received
>>> from various platforms).  However, most of the time multiple newline
>>> conventions is a sign that the file is either corrupt or isn't text.
>> There is at least one Mac source code editor (SubEthaEdit) that is all
>> too happy to add one kind of newline to a file that started out with a
>> different line ending character.
> I've seen similar behavior in MS VC++ (long ago, dunno what it does
> these days). It would read files with \r\n and \n line endings, and
> whenever you edited a line, that line also got a \r\n ending. But
> unchanged lines that started out with \n-only endings would keep the
> \n only. And there was no way for the end user to see or control this.

I've seen it in Scite (an editor based around Scintilla) just yesterday. 
  It was rather annoying, since it messed up my diffs something awful, 
and was invisible to the naked eye.  (But it lets you "Show Line 
Endings", which quickly made the problem apparent.)

Later,
Blake.


More information about the Python-3000 mailing list