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

Allow specifying a text encoding for text in a binary template #184

Closed
solemnwarning opened this issue Sep 11, 2022 · 2 comments
Closed
Labels
feature A new feature
Milestone

Comments

@solemnwarning
Copy link
Owner

Something along these lines, perhaps:

char utf16_text[x] <encoding=UTF-16LE>;

@solemnwarning solemnwarning added the feature A new feature label Sep 11, 2022
@solemnwarning solemnwarning added this to the 0.6.0 milestone Sep 19, 2022
@solemnwarning
Copy link
Owner Author

Some possible syntaxes for this:

Something like 010 Editor: char text[100] <encoding="UTF16-LE">
A weird cross of 010 Editor and C++ templates: char<encoding="UTF-16LE"> text[100];
Something akin to GCC attributes: char text[100] encoding("UTF-16LE"); or char text[100] attribute(encoding="UTF-16");

And some other things that might want to be covered by the same syntax:

  • Endianness (overriding the global flag)
  • Instruction set for disassembly/code type
  • Alignment

@solemnwarning
Copy link
Owner Author

Implemented in 8c7b955.

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

No branches or pull requests

1 participant