-
Notifications
You must be signed in to change notification settings - Fork 18k
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
runtime: print, println and panic always write utf-8 on windows #7864
Comments
It's possible to fix this, but it will complicate the runtime a lot with not a lot of benefit (workaround is that you always redirect the stderr to a file and view it with utf-8 capable tools) basically, before we write to stderr, we need to determine if it's a terminal or not, and use WriteConsole or WriteFile respectively (Like what we did for the os package). This kind of change is too late for 1.3, mark this issue for 1.4. Labels changed: added release-go1.4, repo-main. Status changed to Accepted. |
CL https://golang.org/cl/16714 mentions this issue. |
It is said in https://groups.google.com/forum/#!msg/golang-codereviews/hq63SCACMJo/KL97UzWeEQAJ that windows console is extremely slow. Have you got FPS improvements after switching to WriteConsole? |
The windows console is slow to display chars. Different pipe. I was just saying if println and panic take a few ms longer, it probably won't be the bottleneck. |
@techtonik I don't see how speed of println and panic is important. Alex |
Do you have any tests to measure FPS and compare between Windows console and Linux? This ASCII Madness II runs at 60 FPS on average on my machine, and what means slow for you? |
It is important because people are now using https://groups.google.com/forum/#!msg/golang-codereviews/hq63SCACMJo/KL97UzWeEQAJ as a proof that Windows console is extremely slow compared to Linux and I find my experience with Gnome terminal completely opposite. |
That is irrelevant to this issue. Feel free to open a topic on go-nuts On Tue, Nov 17, 2015 at 3:28 PM anatoly techtonik notifications@github.com
|
Here is the thread that is still important for this project #13104 (comment) |
I am confused now. But, @techtonik , never mind that. I am easily confused. If you have some problem feel free to open new issue. Let's not continue here. Thank you. Alex |
by zr95.vip:
The text was updated successfully, but these errors were encountered: