+[8.50b1] Unreal text search combinations

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

+[8.50b1] Unreal text search combinations

Post by *MVV »

Some options can't be combined together, e.g.:

1. HEX and RegEx search: TC allows to select them both but finds nothing in such case. So TC shouldn't allow to check them both.

2. HEX and UTF-*/Office: TC finds only HEX in such case. So, when HEX checkbox is checked, UTF-*/Office (and other ignored modes) checkboxes should be grayed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48107
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I agree, thanks.
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Post by *fleggy »

Hello, the same problem (Regex and Hex at same time) is in Lister. In this case nothing is found.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Nice fix in beta 2, when some checkbox is checked, the other one becomes unchecked. :) Thanks!

BTW it is still possible to enable UTF-*, Office and HEX (case 2) but TC finds only HEX in such case.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48107
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, that should work - have you tried to put the text in double quotes, e.g.

01 02 "some text"
or
"PK" 03 04
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I entered FF and expected to find both characher with code 0xFF and text sequence FF.

Or what should TC do when I check together UTF-8 and HEX?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48107
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, it's described in the help:
"Search hex string" allows to enter the search text as Hex, e.g. 00 FF 12, or in mixed mode, like "PK"0102.

In mixed mode, UTF-8 would determine the encoding of the text in double quotes.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Ah, so 'HEX' flag only enables entering text in mixed format. That makes it clear, thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48107
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, otherwise TC would literally search for the text
"PK"0102
and not for the characters P, K, and codes 01 and 02.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

So the case is closed. :)
Post Reply