octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #43334] [GUI] Editor inserts CR LF rather than


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #43334] [GUI] Editor inserts CR LF rather than just LF
Date: Sat, 04 Oct 2014 20:58:25 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 Iceape/2.22

Follow-up Comment #3, bug #43334 (project octave):

Well I figured that would be obvious.

I'm doing development (mostly io package and some core Octave stuff) on both
Windows and Linux.

1. I think no serious editor should be allowed to mix up different EOL types
in one file. As far as I'm aware Octave's GUI editor is the only one who does
this. (I deem Windows' notepad.exe not a serious editor)

2. Having mixed LF / CR-LF EOLs gives lots of extra lines diffs only caused by
different EOL types.

3. Some months ago Rafael Labiossierre stressed me to make sure there are only
LF EOLs in the io package as it gave him lots of extra work preparing Debian
packages. (I can't find the post right now, was in spring IIRC)
At the time I figured those CRLFs were my fault - as I didn't know where they
came from I usually ran Octave files through dos2unix just to make sure EOLs
are LF only. Yet I think that sort of extra steps shouldn't be required.
Only now it is clear how those CRLF crept in and I conclude that Octave's GUI
editor must have had this bug for a very long time,

I know from your comments in bug #41281 that Octave may be oblivious to EOL
types; but version control systems and packaging systems are less immune.

Is this answer sufficient to convince you?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43334>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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