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

Windows: ensure output is UTF16 encoded when output is not a terminal #1064

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

Conversation

aymanbagabas
Copy link
Member

We need to transform the output from UTF8 to wide characters UTF16 for Windows to understand when output is not a terminal.

It wouldn't make sense to start the renderer on an uninitialized
terminl I/O.
Otherwise, the output is gibberish invalid encoded utf16. When using
windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING, the output gets converted
automatically by Windows Console API. When output is not a terminal, we
need to do that ourselves.
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.

1 participant