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

Fix special var names #37

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fix special var names #37

wants to merge 5 commits into from

Conversation

Timendus
Copy link
Owner

@Timendus Timendus commented Nov 22, 2021

Closes #32

This should hopefully be a fix for the issues with sending variables with special characters in their names. Probably needs a bit more testing, but this at least fixes sending programs with a θ in their name for me.

If anyone is in the mood to give this a test themselves, that would be much appreciated. Otherwise I'll test it some more and see if I run into any more issues myself.

A question that I had while doing this: what encoding does the "comment" field in a TI file use?

TODO

  • Fix indentation mismatches
  • Test more weird characters
  • Check CodeClimate issues

@adriweb
Copy link
Collaborator

adriweb commented Nov 23, 2021

The comment field isn't exposed by TI to the user AFAIK so I guess you can just use normal ASCII. But regardless, it's 42 free bytes, they could be anything!

@Timendus
Copy link
Owner Author

This PR probably still has a bug. Programs with special characters in their name can't be deleted normally from the calculator.

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

Successfully merging this pull request may close these issues.

Variables with non-UTF8 characters in their name get the wrong name after transmission
2 participants