[darcs-users] Line endings

Stephen J. Turnbull stephen at xemacs.org
Mon Jul 14 18:46:39 UTC 2008


Nimrod A. Abing writes:

 > endings pretty well. So does Eclipse, Vim and Emacs. When you use a
 > text editor that does not care about line endings (but preserves them
 > when you save your files), then this silly little problem goes away,
 > yes?

No, it doesn't.  There are build tools on Windows that care about line
endings as much as Make on Unix cares about TAB vs SPC.  Unix hackers
often create automatic editors (such as awk and m4 scripts) that work
properly on Unix but will happily generate files with mixed line
endings from Windows files.  Not to mention that asking people to even
think about using a different editor is unacceptable to 99.44% of all
programmers, with the people who would need to change probably being
even more recalcitrant.<wink>

There just aren't any guaranteed wins, except to evolve *all* our
tools to conform to Unicode.  http://www.unicode.org/reports/tr14/
At *that* point, yes, this silly little problem goes away.


More information about the darcs-users mailing list