Ticket #3416 (closed defect: fixed)
viewer case insensitive search doesn't find accents
Reported by: | egmont | Owned by: | slavazanko |
---|---|---|---|
Priority: | critical | Milestone: | 4.8.14 |
Component: | mc-search | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master |
Description
Regression since 4.8.13. Fully UTF-8 environment.
Open the attached file in mcview. Search (F7) for Szerémi in case insensitive mode. No match found, although it's definitely contained in the file multiple times.
Attachments
Change History
comment:1 Changed 10 years ago by egmont
- Milestone changed from Future Releases to 4.8.14
git bisect says:
commit 933fd255d07f8bdb9ffe020bda259102890e971a
Ticket #2743: File selection by patterns uses bytes instead of (unicode) characters.
Using the "?" pattern in the file selection dialog brought up with '+',
mc uses the file name length in bytes instead of characters.
comment:2 Changed 10 years ago by egmont
Note that the same bug is present in:
- viewer's search
- editor's search
- find file
- select files
- (...?)
comment:4 Changed 10 years ago by slavazanko
- Owner set to slavazanko
- Status changed from new to accepted
comment:5 Changed 10 years ago by egmont
Patch attached, please test+review it.
(Note: I haven't run the unittests, I don't know how to do it and too lazy to look it up right now :) Please double check that, too.)
comment:6 Changed 10 years ago by egmont
I've updated the unittest bits to actually add unittests for case insensitive search. I still haven't compiled it, it might be broken, but it should be easy to fix :)
comment:7 Changed 10 years ago by slavazanko
- Votes for changeset set to slavazanko
- Branch state changed from no branch to approved