lister hex search produces strange result
Moderators: Hacker, petermad, Stefan2, white
lister hex search produces strange result
@all
When I open any file in Lister and search for a hex string 'FF' there is found '98 but not 'FF''. If I search for '98' there is found '7E' but not '98'.
The result doesn't change if I check 'case sensitive' or not.
Can anyone confirm this bahavior?
BTW: If I search for '5f' search works fine.
sheepdog
When I open any file in Lister and search for a hex string 'FF' there is found '98 but not 'FF''. If I search for '98' there is found '7E' but not '98'.
The result doesn't change if I check 'case sensitive' or not.
Can anyone confirm this bahavior?
BTW: If I search for '5f' search works fine.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Right @ home
2Sheepdog
Hi Stefan !
¤ I just tested the Search with FF, it works fine under Win 98SE.
* I had not the other hexa numbers you quote in the tested file. I'll test with other files and under XP-Pro later, because I have to turn off the PCs (big storm !)…
EDIT : works too with 98
V G
Claude
Clo

¤ I just tested the Search with FF, it works fine under Win 98SE.
* I had not the other hexa numbers you quote in the tested file. I'll test with other files and under XP-Pro later, because I have to turn off the PCs (big storm !)…
EDIT : works too with 98

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
I've found what is the problem!!! Lister takes the symbol with the hex-code entered, then converts it into the encoding chosen (ASCII) and only then it looks for a new symbol with the new hex-code which can differ from the first one. If this is so, all hex-codes below 80 must be found perfectly in any encoding.
For exapmle, I took the symbol with code FF. I use Russian codepage, this symbol in ANSI is Russian letter 'я' - the last symbol of Russian alphabet in lowercase. When I choose ASCII, the same letter is now encoded with EF, and Lister finds this symbol when I search in ASCII-mode. (on other codepages the result will be different).
For exapmle, I took the symbol with code FF. I use Russian codepage, this symbol in ANSI is Russian letter 'я' - the last symbol of Russian alphabet in lowercase. When I choose ASCII, the same letter is now encoded with EF, and Lister finds this symbol when I search in ASCII-mode. (on other codepages the result will be different).
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
ts4242
SanskritFritz
Didn't you forget about checkbox "Case sensitive" in Find dialog?

SanskritFritz
Didn't you forget about checkbox "Case sensitive" in Find dialog?


Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
as far as you search for a hex value there is no meaning for "Case sensitive" i think it must disabled when i check [Search hex string]Flint wrote:ts4242
SanskritFritz
Didn't you forget about checkbox "Case sensitive" in Find dialog?![]()


flint said
if this true you must get the same result each time you press F5 to find the next occurrence of "FF" but this doesn't happen, each time you do find next you get a different result.I've found what is the problem!!! Lister takes the symbol with the hex-code entered, then converts it into the encoding chosen (ASCII) and only then it looks for a new symbol with the new hex-code which can differ from the first one. If this is so, all hex-codes below 80 must be found perfectly in any encoding.

Fonts---
>>> To All
Hello !
¤ I don't know if it's helpful, but below are the fonts I use in Lister (from wincmd.ini) under Win 98 Se :
* Note : "Case sensitive" was unticked in my tests.
KR
Claude
Clo

¤ I don't know if it's helpful, but below are the fonts I use in Lister (from wincmd.ini) under Win 98 Se :
Code: Select all
[Lister]
...........
Font2=OCR A Extended,-13,b
Font3=Arial,-15
...........
Wrap=1
BgColor=16777147
FgSelColor=8388608
BgSelColor=16767487
...........
Font1=Courier New,-13,b

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
I remeber a thread were this is mentioned by another user (maybe on the german forum). @ghisler told that this by design: You may type in a hex Value but if you don't check case sensitive search presents both the upper and lower case of the character you search for. So your observation is right but it's no bug - by definition of @ghisler.ts4242 wrote:if you do search for 41 (hex ascii code for "A" character) you will get 41 or 61 (the code of "a")
the same thing for the other characters from a to z
this happened with ANSI option too, so what is wrong!
@flint
Thanks, you're right. The ANSI-ASCII Conversion is the problem. If I use ANSI or even 'variable char widht' search works fine. So as I disabled the 'autodetect of font while starup' the search didn't work as expected.
@Clo
I tried it out: There is no coherence between lister -font and hex search result.
@ghisler
Is it possible to add another checkbox in lister-search to apply this ASCII-ANSI conversion?
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Ok, but this seems a little strange!Hacker wrote:ts4242, Sheepdog,
Sheepdog is right - case sensitive does indeed have an effect even if you are searching using hex.
HTH
Roman
when i search for hex "4D 5A" i need these two bytes value exactly not the ASCII characters of these values. if i need the string simbly i will search for "MZ"
so as i said before it is logical to disable "Case sensitive" when searching for hex.
searching for a hex is very important if you want to be a "Hacker"
