bugGNU nano - Bugs: bug #47307, nano chooses syntax based on name...

 
 

bug #47307: nano chooses syntax based on name of target file, not based on name of symlink

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 29 Feb 2016 04:05:03 PM UTC  
 
Severity: 4 - ImportantStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 14 May 2016 07:16:13 AM UTC, comment #3:

This change also fixed an issue whereby nano would crash on launch every time on some systems because of incorrect usage of realpath(). Passing NULL as the second argument is not portable.

Jeremy Huddleston Sequoia <jeremyhu>
Mon 29 Feb 2016 04:57:41 PM UTC, comment #2:

Fixed in SVN, r5703.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 29 Feb 2016 04:16:12 PM UTC, comment #1:

The offending commit is r5218 -- the fix for bug #44288.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 29 Feb 2016 04:05:03 PM UTC, original submission:

Run:

cp src/winio.c wiwi.py
ln -s wiwi.py cccc.c
src/nano wiwi.py
src/nano cccc.c

See that both "files" are colored as if it were a Python file -- that is: according to the extension of the actual file.

Vim and emacs and joe don't behave that way: they will color things according to the Python syntax when editing wiwi.py, and according to the C syntax when editing cccc.c. So surely nano should do the same.

Bug is present since nano-2.4.2.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jeremyhu (Posted a comment)
  • -unavailable- added by bens (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Jun 2016 09:44:39 AM UTCbensOpen/ClosedOpen=>Closed
    Mon 29 Feb 2016 04:57:41 PM UTCbensSeverity3 - Normal=>4 - Important
      StatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1