Bug 2353508 - nano syntax highlighting no longer works by default
Summary: nano syntax highlighting no longer works by default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nano
Version: 42
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lukáš Zaoral
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-20 06:10 UTC by Vladislav Grigoryev
Modified: 2025-03-22 02:39 UTC (History)
5 users (show)

Fixed In Version: nano-8.3-3.fc43 nano-8.3-3.fc42
Clone Of:
Environment:
Last Closed: 2025-03-20 16:17:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1270712 0 unspecified CLOSED Maybe enable syntax highlight by default? 2025-03-20 07:01:42 UTC

Description Vladislav Grigoryev 2025-03-20 06:10:31 UTC
nano syntax highlighting no longer works by default in F42.

Reproducible: Always

Steps to Reproduce:
A simple test:
```
nano /etc/nanorc
```
Actual Results:  
Syntax highlighting is disabled by default.

Expected Results:  
Syntax highlighting should be enabled by default.

The include path in the sample nanorc no longer has quotes:
https://git.savannah.gnu.org/cgit/nano.git/tree/doc/sample.nanorc.in#n252

The sed patch fails and should be fixed here:
https://src.fedoraproject.org/rpms/nano/blob/rawhide/f/nano.spec#_84

Comment 1 Kamil Dudka 2025-03-20 07:07:55 UTC
This is caused by the following upstream change: https://git.savannah.gnu.org/cgit/nano.git/commit/?id=ebddb49041c718e569c80fba282343650307c202

The quotes need to be removed in the corresponding regular expression: https://src.fedoraproject.org/rpms/nano/blob/31a86c372c17750c4a05cbef8bde31c8ceae0033/f/nano.spec#_84

Comment 2 Fedora Update System 2025-03-20 09:12:29 UTC
FEDORA-2025-bc78ab60d5 (nano-8.3-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bc78ab60d5

Comment 3 Fedora Update System 2025-03-20 09:15:10 UTC
FEDORA-2025-74000de84f (nano-8.3-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-74000de84f

Comment 4 Fedora Update System 2025-03-20 16:17:55 UTC
FEDORA-2025-74000de84f (nano-8.3-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2025-03-21 03:15:08 UTC
FEDORA-2025-bc78ab60d5 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-bc78ab60d5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-bc78ab60d5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-03-22 02:39:56 UTC
FEDORA-2025-bc78ab60d5 (nano-8.3-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.