I am trying to search for file contents, and click the "It's a hex string", mode:normal, type:binary.
If the input string contains a certain byte value, it is not found.
For example: a 3254 byte file contains multiple occurrences of "96 01 21 7F" near the end. The program does not find it. But it is able to find "01 21 7F".
If I search for "96" in a set of random 6818 files (web cache), it returns only 1501 files. In reality 5394 files contain a byte equal to 0x96. Furthermore, if I search for either of these values 80,82,84,85,86,87,89,8B,8D,8E,8F I also get only approximately 1500 files, give or take a few. 81, 88, 8A, 8C return the correct number. But this pattern doesn't hold when searching for 2 consecutive bytes. The number of files returned is somewhat less if one of the bytes is 8X, or maybe any greater than 80.
Version: 22.80
OS: Server 2003 SP2
Last version known to work: 16.10 (must select binary mode)
Search hex string doesn't find some input byte values
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
admin
- Site Admin
- Posts: 66626
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search hex string doesn't find some input byte values
Interesting. Can you send me such a file for testing?
FAQ | XY News RSS | XY X
-
j7n
- Posts: 7
- Joined: 12 Feb 2022 18:45
Re: Search hex string doesn't find some input byte values
I can. But it is not a unique example of a file that is skipped from the results.
sj.package: 96 01 21 7F > not found
test81.bin: 7881BC > found
test87.bin: 7887BC > not found
sj.package: 96 01 21 7F > not found
test81.bin: 7881BC > found
test87.bin: 7887BC > not found
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 66626
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search hex string doesn't find some input byte values
When I set Type to "Binary" it seems to work. Can you confirm that?
FAQ | XY News RSS | XY X
-
j7n
- Posts: 7
- Joined: 12 Feb 2022 18:45
Re: Search hex string doesn't find some input byte values
No. I can't find these search strings in 22.80 at all.
Here is how it looks.
https://i.imgur.com/u1d3QgC.png
https://i.imgur.com/2jAXmG3.png
https://i.imgur.com/fgVFRfU.png
https://i.imgur.com/LQuXFpF.png
I wouldn't be surprised if it's a regional setting on my computer. Previously I had a VisualBasic program stop working after I changed the decimal separator. lol. Maybe there is an unintentional conversion between code pages, which would affect the higher byte values only? I use windows-1257 and cp775.
Here is how it looks.
https://i.imgur.com/u1d3QgC.png
https://i.imgur.com/2jAXmG3.png
https://i.imgur.com/fgVFRfU.png
https://i.imgur.com/LQuXFpF.png
I wouldn't be surprised if it's a regional setting on my computer. Previously I had a VisualBasic program stop working after I changed the decimal separator. lol. Maybe there is an unintentional conversion between code pages, which would affect the higher byte values only? I use windows-1257 and cp775.
-
admin
- Site Admin
- Posts: 66626
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search hex string doesn't find some input byte values
Attach images in the forum:
To see the attached files, you need to log into the forum.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66626
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search hex string doesn't find some input byte values
Should be fixed in the next beta. Thanks, good bug! 
FAQ | XY News RSS | XY X
XYplorer Beta Club