{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/7864","labels_url":"https://api.github.com/repos/golang/go/issues/7864/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/7864/comments","events_url":"https://api.github.com/repos/golang/go/issues/7864/events","html_url":"https://github.com/golang/go/issues/7864","id":51287326,"number":7864,"title":"runtime: print, println and panic always write utf-8 on windows","user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/OS-Windows","name":"OS-Windows","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/25","html_url":"https://github.com/golang/go/milestones/Go1.6Early","labels_url":"https://api.github.com/repos/golang/go/milestones/25/labels","id":1182837,"number":25,"title":"Go1.6Early","description":"Go 1.6 issues that need to be fixed before the code freeze.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":61,"state":"open","created_at":"2015-06-26T15:47:06Z","updated_at":"2015-11-14T18:56:34Z","due_on":"2015-10-31T04:00:00Z","closed_at":null},"comments":11,"created_at":"2014-04-25T04:24:57Z","updated_at":"2015-11-17T23:29:43Z","closed_at":"2015-11-12T20:00:52Z","body":"by **zr95.vip**:\n\n<pre>What does 'go version' print?\ngo version go1.2.1 windows/amd64\n\nWhat steps reproduce the problem?\nIf possible, include a link to a program on play.golang.org.\n\n1. Write a program that passes a string with non-Ascii characters to print, println or\npanic.\n\npackage main\n\nimport &quot;fmt&quot;\n\nfunc main() {\n\tfmt.Println(&quot;Hello, 世界&quot;)\n\tprintln(&quot;Hello, 世界&quot;)\n\tpanic(&quot;Hello, 世界&quot;)\n}\n\n2. Run the program in Windows console.\n\nWhat happened?\n\nIt prints\n\nHello, 世界\nHello, Σ╕ûτòî\npanic: Hello, Σ╕ûτòî\n\ngoroutine 1 [running]:\nruntime.panic(0x41f7a0, 0xc084006040)\n        C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease250988475/go/src/pkg/runtime/panic.c:266 +0xc8\nmain.main()\n        c:/a.go:6 +0x93\n\nWhat should have happened instead?\n\nThe first three lines of the output should be:\n\nHello, 世界\nHello, 世界\npanic: Hello, 世界\n\nPlease provide any additional information below.\n\nThe code page is cp437. Output may be different with other code page.\n\nfmt.Println did the right thing, so print and println can be (and should be) avoided.\n\nBut how about panic?</pre>"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/157544265","html_url":"https://github.com/golang/go/issues/7864#issuecomment-157544265","issue_url":"https://api.github.com/repos/golang/go/issues/7864","id":157544265,"user":{"login":"kardianos","id":755121,"avatar_url":"https://avatars.githubusercontent.com/u/755121?v=3","gravatar_id":"","url":"https://api.github.com/users/kardianos","html_url":"https://github.com/kardianos","followers_url":"https://api.github.com/users/kardianos/followers","following_url":"https://api.github.com/users/kardianos/following{/other_user}","gists_url":"https://api.github.com/users/kardianos/gists{/gist_id}","starred_url":"https://api.github.com/users/kardianos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kardianos/subscriptions","organizations_url":"https://api.github.com/users/kardianos/orgs","repos_url":"https://api.github.com/users/kardianos/repos","events_url":"https://api.github.com/users/kardianos/events{/privacy}","received_events_url":"https://api.github.com/users/kardianos/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T23:29:43Z","updated_at":"2015-11-17T23:29:43Z","body":"That is irrelevant to this issue. Feel free to open a topic on go-nuts\nhowever. This issue only addresses the builtin println and panic functions.\n\nOn Tue, Nov 17, 2015 at 3:28 PM anatoly techtonik <notifications@github.com>\nwrote:\n\n> Do you have any comparison/tests to measure FPS and compare between\n> Windows console and Linux? This ASCII Madness II\n> <http://www.pouet.net/prod.php?which=18381> runs at 60 FPS on average on\n> my machine, and what means slow for you?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/golang/go/issues/7864#issuecomment-157543839>.\n>\n"}}