[e-lang] SWT on the Mac (was E Download News)
Mark S. Miller
markm at cs.jhu.edu
Sun Dec 24 19:00:52 CST 2006
Kevin Reid wrote:
>> I notice that on MSWindows these days, everything except Notepad
>> seems to work file with just LF newlines. I propose that we just
>> use LF newlines in all text files everywhere.
>
> Why? Telling Subversion to use native line endings works
> transparently, and wouldn't new files created in Windows text editors
> then end up with CRLFs, creating mismatches?
Could we do a commit-time script? But hmmm, it's probably not worth it.
On a related matter, E current coverts LFs to platform newlines when it writes
text files. IMO, this has only been an annoyance, never a benefit. In my
current development tree, I've added a switch to control this, and I've
currently set the switch to always emit LFs regardless of platform. If there's
no objection, I'll include this in the next release. If there continues to be
no objection, I'll eventually remove the switch and make this the only behavior.
When reading text files, E will continue to convert CRLFs and lone CRs into LFs.
--
Text by me above is hereby placed in the public domain
Cheers,
--MarkM
More information about the e-lang
mailing list