Just a nit: 5 years ago that was true. Now \n is "native"
Was that part of the OS/X migration, or otherwise? Just curious.
<nod> Part of the migration. OS X /is/ unix. Ok, I'm sure that's an
inaccurate statement and I trust the more experienced Apple guys here
will gently correct me. But it really is... ;-)
It is quite accurate to say that OS X is Unix, more precisely BSD given
its NextSTEP ancestry (for example 10.2 did not even have the poll(2)
system call, which is typically a SysV thing).
Unfortunately, GUI programs such as TextEdit seem not to know this, and
will still produce text files with bare CRs in them. But if all you use
is Emacs, vim, Eclipse, terminal windows, etc. (as in my case) you can
assume all your files have \n-terminated lines.
Paolo
- Re: What is really a new line in most compilers Paolo Bonzini
-