Ticket #4 (closed defect: fixed)
savannah: Incorrect sorting of localized filenames
Reported by: | slavazanko | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.7 |
Component: | mc-core | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description (last modified by ossi) (diff)
Original: http://savannah.gnu.org/bugs/?8158
Submitted by: | None | Submitted on: | Tue 16 Mar 2004 02:07:53 AM UTC |
Category: | Screen output | Severity: | 3 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Release: | 4.6.0 | Operating System: | GNU/Linux |
Original submission:
I have a koi8-r locale and some files with russian names. When sorting configured as case sensitive, I can see a new russian alphabet at the panels :) I look in source code and found an error - the "strcmp" function used for sorting all names, but it's doesn't know about any locale. So it should be replaced by something else. For example, "wcscmp". Here is the patch to correct this problem. It's some big, but I think, it's will be work with any locales.
Attachments
Change History
comment:1 follow-up: ↓ 4 Changed 16 years ago by guanx
- Keywords rework added
Tested with mc-4.6.2 + utf8 patch in zh_CN.UTF-8 locale. Does not work (should sort Chinese like strcoll, but actually in random order).
comment:3 Changed 16 years ago by angel_il
- Status changed from new to closed
- Resolution set to fixed
in master not actually
Note: See
TracTickets for help on using
tickets.