-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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) Set console to UTF-8 on init #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok, but i am on linux only right now, so if someone on windows could confirm this works please....
tested on win, LGTM. Considering the previous UTF-8 hack this replaces, I'd say it's better done this way. |
Co-authored-by: Jed Fox <[email protected]>
Can merge after conflicts are resolved |
Only concatenate after all batches are done
your comit contains main.cpp file, but the master branch I cloned does not contain this file, how can I fix the bug? |
From my testing this fixes the problems with UTF-8 inputs and outputs.
I dislike having to add this platform-specific code but it has to be done for it to work properly.
The only other option would be guiding users to go deep into settings to enable a "beta" UTF-8 feature...sigh.
At least is wrapped somewhat nicely as its' own function outside the main loop.