What do you recommend as a default fallback for line endings if the operating system cannot be determined?
Mac OS up to version 9 uses carriage returns (
\r) for line endings. Unix-like systems do line endings with line feeds (
\n) and Windows uses two characters (
\r\n) to mark a line ending.
What's the best fallback which is most compatible for all mentioned systems when writing code files which are exchanged with developers on different platforms?