bugGNU nano - Bugs: bug #48700, in the file browser, some items...

 
 

bug #48700: in the file browser, some items are sometimes sorted incorrectly

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 04 Aug 2016 06:21:04 PM UTC  
 
Severity: 2 - MinorStatus: 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.

 

Fri 05 Aug 2016 02:16:00 PM UTC, comment #1:

Fixed in git, d80109d.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 04 Aug 2016 06:21:04 PM UTC, original submission:

In a UTF-8 locale, when one filename is the exact beginning part of some other filenames, then these filenames are not always sorted correctly (depending on their actual order in the directory).

To reproduce, run 'mkdir jumble; cd jumble; touch aaaa; touch aa; touch a; nano', and then type ^R ^T. The correct sorted order would be "a, aa, aaaa", but most likely you'll see "aa, a, aaaa", or some other incorrect order. In a C locale, things are sorted fine.

The bug is old, since at least nano-2.2.1.

(I first noticed this by running nano, opening the file browser, jumping to /usr/bin, and typing M-/. There are several "zip*" programs there, including "zip" itself, but... the latter was not the first of those zips.)

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 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Aug 2016 10:54:04 AM UTCbensOpen/ClosedOpen=>Closed
    Fri 05 Aug 2016 02:16:00 PM UTCbensStatusIn Progress=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1