Skip to content
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

Going to the Xenocrypt from the pull down menu causes a crash when entering accented characters #501

Closed
toebes opened this issue Feb 24, 2024 · 1 comment

Comments

@toebes
Copy link
Owner

toebes commented Feb 24, 2024

If you go to the test generation tools pulldown menu and select Xenocrypt, it brings you to:
https://toebes.com/codebusters/XenocryptEncrypt.html?cipherType=aristocrat
image

instead of clicking on the xenocrypt button on the main page which brings you to
https://toebes.com/codebusters/XenocryptEncrypt.html?cipherType=aristocrat&curlang=es
image

Note the difference of the curlang not being specified in the menu

Once there, change the language from English to Spanish

Then enter a plain text string of:
abcde üñéáíóúüñéáíóúüñéáíóúüñéáíóúüñéáíóúdx

and you should see an error.

The problem is that the state.replacement field is not set up to include the ñ character.

When changing the language, that field should be reinitialized to avoid the problem

@toebes toebes self-assigned this Feb 24, 2024
@toebes toebes assigned SuperIronDragon and unassigned toebes Jun 17, 2024
SuperIronDragon added a commit to SuperIronDragon/ciphers that referenced this issue Jun 22, 2024
SuperIronDragon added a commit that referenced this issue Jun 22, 2024
@SuperIronDragon
Copy link
Collaborator

Fixed! The issue was that it wasn't regenerating the encoding table when changing the language so it didn't have anything corresponding to ñ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants