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

Linux GCC operates with 4 byte wchar_t instead of 2 #6

Closed
Retr0-code opened this issue Oct 29, 2023 · 1 comment
Closed

Linux GCC operates with 4 byte wchar_t instead of 2 #6

Retr0-code opened this issue Oct 29, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Retr0-code
Copy link
Owner

Retr0-code commented Oct 29, 2023

Description

Linux GCC operates with 4 byte wchar_t instead of 2. This cause invalid parsing and conversion of bootkey. Besides that characters displayed with it are unreadable.

To Reproduce

Steps to reproduce the behavior:

  1. Compile on linux with clang or gcc
  2. Run the binary

Expected behavior

Properly displayed characters, valid bootkey parsing and conversion.

@Retr0-code Retr0-code added the bug Something isn't working label Oct 29, 2023
@Retr0-code
Copy link
Owner Author

Possible solution to it is changing wchar_t to char16_t or uint16_t.

Problem with this solution. Create convertion function from 2 byte to 4 byte wchar_t

@Retr0-code Retr0-code mentioned this issue Oct 23, 2023
2 tasks
@Retr0-code Retr0-code added the good first issue Good for newcomers label Nov 1, 2023
@Retr0-code Retr0-code mentioned this issue Nov 1, 2023
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant