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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding UTF-8 output codepage support on Windows #37

Closed
wants to merge 2 commits into from
Closed

adding UTF-8 output codepage support on Windows #37

wants to merge 2 commits into from

Conversation

HugoFlorentino
Copy link

No description provided.

@nektro
Copy link
Owner

nektro commented Oct 4, 2021

what does this enable/fix?

@HugoFlorentino
Copy link
Author

HugoFlorentino commented Oct 4, 2021

If Windows is in a language with diacritics, API errors appear incorrectly unless app changes output codepage first to unicode (65001).

Actually, since you are using zig master, you may include kernel32 instead of the extern declaration, I already submitted a PR to master adding the function, and it was merged.

@nektro
Copy link
Owner

nektro commented Oct 5, 2021

are there any docs on this from MS and can you link the upstream pr?

@HugoFlorentino
Copy link
Author

@HugoFlorentino
Copy link
Author

I further simplified the fix, after noticing that console already includes the SetConsoleOutputCP function.

@nektro
Copy link
Owner

nektro commented Oct 8, 2021

the ci failure is a bug with the other code and the ci script, I'll fix that

this change looks good

This pull request was closed.
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.

None yet

2 participants