octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default line endings on Mac


From: Andrew Janke
Subject: Re: Default line endings on Mac
Date: Thu, 10 Jan 2019 14:27:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.4.0


On 1/10/19 2:02 PM, Torsten wrote:
On 10.01.19 18:54, Andrew Janke wrote:
Hi, Octave maintainers,

On macOS, at least with a Qt build, the default EOL mode for Octave as
of 4.4.1 is "Mac (CR)".

I think this might be an archaism: "Mac" (\r) EOL mode text files were
used by pre-OS X Mac OSes like Mac OS 9. Since the switch to the
Unix-based OS X, Mac programs generally default to Unix style (\n) line
endings. You can verify this by opening TextEdit and creating a new
plain text file: it uses \n EOLs.

Having files created in legacy Mac (\r) mode makes it a bit harder to
use Unix command line tools and stuff like GitHub with those files.

Can/should Octave be changed to default to Unix (\n) EOLs on macOS?

Cheers,
Andrew


If Mac users agree to LF being the default ending, the change should not
be difficult. Btw: In Geany, the line ending CR is denoted as "Classic
Mac", which might be more up to date.

Torsten


I like the "Classic Mac" labeling. That seems more informative.

Some other data points:

Sublime Text denotes it as "Mac OS 9".
BBEdit denotes it as "Legacy Mac (CR)".
TextEdit and Atom don't seem to have any controls for selecting the EOL format. Matlab R2018b doesn't seem to have a setting for it, but creates new files in Unix (LF) format.

Andrew



reply via email to

[Prev in Thread] Current Thread [Next in Thread]