TC 9.50 - invalid search hex

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Ciber SLasH
Junior Member
Junior Member
Posts: 9
Joined: 2013-04-25, 14:42 UTC

TC 9.50 - invalid search hex

Post by *Ciber SLasH »

Hi all!
Search hex-value: de10
[img]https://imageup.ru/img271/thumb/screenshot_2020-03-01_1537323565056.jpg[/img]
In result 48 files. I open all find files in HxD and search hex-value de10 - find only 1 file (not marked on screenshot), in all last files HxD not found de10:
[img]https://imageup.ru/img271/thumb/screenshot_2020-03-01_1548543565061.jpg[/img]
Dump: https://www51.zippyshare.com/v/XQbrHPpl/file.html
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50 - invalid search hex

Post by *ghisler(Author) »

The search is case senstitive. For example, when using Western encoding, DE would be character Ì, and the search would also find ì (which is character 8D).
Author of Total Commander
https://www.ghisler.com
Ciber SLasH
Junior Member
Junior Member
Posts: 9
Joined: 2013-04-25, 14:42 UTC

Re: TC 9.50 - invalid search hex

Post by *Ciber SLasH »

Why hex-search case sensitive?
In all software (HEX editors) search hex-value case insensitive!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50 - invalid search hex

Post by *ghisler(Author) »

Because you can mix text and hex, e.g.
"PK" 01 02
This is converted to text and then sent to the search function.
Author of Total Commander
https://www.ghisler.com
siealex
Senior Member
Senior Member
Posts: 278
Joined: 2009-03-22, 16:36 UTC

Re: TC 9.50 - invalid search hex

Post by *siealex »

It's a major flaw. Hex search must search only EXACTLY the same data. Mixed text and hex must search text as text (regarding cases etc.), but hex as hex, i. e. exactly.
We are not so S.M.A.R.T. as we imagine...
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: TC 9.50 - invalid search hex

Post by *Hacker »

siealex,
Simply enable "Case sensitive".

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: TC 9.50 - invalid search hex

Post by *Flint »

Actually, I think it would be better if TC automatically set "Case sensitive" option on when user turns on the "Hex" option (but it should allow to turn "Case sensitive" off again, in case the user really wants it; similar to the "square brackets" and "append \" pair).

I've used many hex editors, and I don't remember any one which would search hex values case-insensitively (not by default, at least). So when I use TC's hex search, I never remember to set "Case sensitive" option on. Simply because having to set it is so against all my user experience; I don't even expect that hex search may be performed not case sensitively.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.50 - invalid search hex

Post by *petermad »

I think it would be better if TC automatically set "Case sensitive" option on when user turns on the "Hex" option (but it should allow to turn "Case sensitive" off again, in case the user really wants it;
Support++
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply