Skip to content

Have "From Hex" treat the delimiter as delimiter, not what to erase #1462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

mikecat
Copy link
Contributor

@mikecat mikecat commented Nov 2, 2022

fix #1211
fix #1285

Have "From Hex" treat the delimiter as delimiter, not what to erase.

This will change the output of "From Hex" for an input 0x12 0x34 0x5 0x6 with delimiter "Auto" from 12 34 56 to 12 34 05 06 (after applying "To Hex").
I think the latter output is more natural.

Note that this change breaks some test cases that uses non-hexadecimal strings like "some key" with "Hex" option.
Such input didn't make sense for me, so I changed thiese cases to use "utf8" option instead.
Please let me know if you don't agree.

@n1474335 n1474335 merged commit 8349ffc into gchq:master Nov 25, 2022
@n1474335
Copy link
Member

Good spot. This was definitely a bug. Thanks for the fix.

@mikecat mikecat deleted the from-hex-use-delimiter-as-delimiter branch November 25, 2022 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants