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.)
|