bugGNU nano - Bugs: bug #44620, representation of a Mac file with...


You are not allowed to post comments on this tracker with your current authentication level.

bug #44620: representation of a Mac file with --noconvert is not very useful

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 24 Mar 2015 03:48:14 PM UTC  
Severity:  2 - Minor Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Mon 02 Dec 2019 04:21:06 PM UTC, comment #3: 

This has become irrelevant by now: there should be fewer and fewer files that still use only a CR as line separator, as Macs have become Unix systems.  So... let it be.

Benno Schulenberg <bens>
Project Administrator
Mon 27 Jun 2016 07:34:39 PM UTC, comment #2: 

I've found this: http://www.unicode.org/reports/tr14/tr14-32.html#BreakingRules.  See LB5: "Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks."

To me that says that nano may show a ^M (when using --noconvert), but that it also must start a new line.

Benno Schulenberg <bens>
Project Administrator
Wed 29 Apr 2015 08:17:52 AM UTC, comment #1: 

I guess the main reason why --noconvert exists is to override nano in the rare case it thinks a file is in Mac-format when it really isn't.

Benno Schulenberg <bens>
Project Administrator
Tue 24 Mar 2015 03:48:14 PM UTC, original submission:  

When opening a file that contains no other line endings than Mac line endings (bare 0x0d instead of 0x0a), the representation on the screen is as a single interminably long line.  This does not seem very useful to me.  Is this the intended behaviour?  I would have expected the separate lines to be shown as separate lines.

As an example, run:

for file in  src/*.c ; do echo -en "aaaaa\r" >>macfie; done
src/nano -N macfie

The content is shown as "aaaaa^Maaaaa^Maaaaa^Maaaaa^M...".

Benno Schulenberg <bens>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-02 bens Severity3 - Normal => 2 - Minor
        StatusConfirmed => Wont Fix
        Open/ClosedOpen => Closed
    2016-06-27 bens Open/ClosedClosed => Open
    2016-06-27 bens StatusWont Fix => Confirmed
    2015-04-29 bens StatusNone => Wont Fix
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5