Lister: wrong search for whole words

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Lister: wrong search for whole words

Post by *Alextp »

From forum.wincmd.ru

1. Open text in Lister
2. Switch to OEM ("ASCII, DOS Charset")
3. Search for a word, check "Whole words only"

-- All strings are found ,even non words,
"файл" is found even inside "файлов".

WinXP SP2, TC 7.02
Last edited by Alextp on 2007-11-04, 10:09 UTC, edited 1 time in total.
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

Confirm
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Alextp
2. Switch to OEM ("DOS")
Do you mean:
ASCII (DOS Charset) :?:

And if so, then I can not confirm it.

But while testing this I discovered this more serious bug: http://ghisler.ch/board/viewtopic.php?p=137388
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2petermad
Yes, ASCII (DOS Charset).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It must be a problem with Russian because I cannot confirm it with German accents.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Strange... Bug confirmed, but only in this way:
- open ascii file in Akelpad, turn on ASCII mode if not detected automatically.
- select and copy word "файл"
- past it into Akelpad's or Lister's search dialog.
It will looks like "д ©«". Press 'Find' - word "файл" will be selected.
However, if you'll type "файл" in TC's or Akelpad's search dialog manually (or past it after copying from ANSI file), both Lister and Akelpad find nothing...
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

2DrShark
However, if you'll type "файл" in TC's or Akelpad's search dialog manually (or past it after copying from ANSI file), both Lister and Akelpad find nothing...
This is probably another "bug", I often found, but never reported yet (sorry): http://ghisler.ch/board/viewtopic.php?t=19016
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Alextp wrote:-- All strings are found ,even non words,
"файл" is found even inside "файлов".
This bug fixed.

However, another problem still exists:
if "Whole words only" not checked and search string will be "файл", it will be converted to "д ©«" when pressing Ctrl+F second time.
Search for "д ©«" -> nothing found.

upd: "файл" will be conerted to "д ©«" even with "Whole words only" checked after next steps:
Ctrl+F "файл" -> OK -> Shift+F3 -> Ctrl+F
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix!
if "Whole words only" not checked and search string will be "файл", it will be converted to "д ©«" when pressing Ctrl+F second time.
Search for "д ©«" -> nothing found.

upd: "файл" will be conerted to "д ©«" even with "Whole words only" checked after next steps:
Ctrl+F "файл" -> OK -> Shift+F3 -> Ctrl+F
Cannot reproduce, sorry. Please submit a new bug report in the new bugs forum and give me more details, e.g. view mode etc.
Author of Total Commander
https://www.ghisler.com
Post Reply