{"action":"created","issue":{"url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/issues/35","repository_url":"https://api.github.com/repos/HPCE/hpce-2016-cw3","labels_url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/issues/35/comments","events_url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/issues/35/events","html_url":"https://github.com/HPCE/hpce-2016-cw3/pull/35","id":187471974,"number":35,"title":"Change stdout to binary mode when rendering bmp in Windows","user":{"login":"zhiyb","id":5932502,"avatar_url":"https://avatars.githubusercontent.com/u/5932502?v=3","gravatar_id":"","url":"https://api.github.com/users/zhiyb","html_url":"https://github.com/zhiyb","followers_url":"https://api.github.com/users/zhiyb/followers","following_url":"https://api.github.com/users/zhiyb/following{/other_user}","gists_url":"https://api.github.com/users/zhiyb/gists{/gist_id}","starred_url":"https://api.github.com/users/zhiyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhiyb/subscriptions","organizations_url":"https://api.github.com/users/zhiyb/orgs","repos_url":"https://api.github.com/users/zhiyb/repos","events_url":"https://api.github.com/users/zhiyb/events{/privacy}","received_events_url":"https://api.github.com/users/zhiyb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-05T02:38:04Z","updated_at":"2016-11-05T14:49:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/pulls/35","html_url":"https://github.com/HPCE/hpce-2016-cw3/pull/35","diff_url":"https://github.com/HPCE/hpce-2016-cw3/pull/35.diff","patch_url":"https://github.com/HPCE/hpce-2016-cw3/pull/35.patch"},"body":"When I redirect the output from `render_world` to something else, e.g.\r\n``render_world | bmptopnm | pnmtopng > $@``\r\nThe output image is distorted:\r\n![](http://zhiyb.github.io/hpce-2016-cw3/bad.png)\r\n\r\nI suspect this is due to how Windows handles `stdout`, so I changed the open mode of `stdout` to binary on Windows. And it works:\r\n![](http://zhiyb.github.io/hpce-2016-cw3/good.png)"},"comment":{"url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/issues/comments/258616367","html_url":"https://github.com/HPCE/hpce-2016-cw3/pull/35#issuecomment-258616367","issue_url":"https://api.github.com/repos/HPCE/hpce-2016-cw3/issues/35","id":258616367,"user":{"login":"jeremych1000","id":17688104,"avatar_url":"https://avatars.githubusercontent.com/u/17688104?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremych1000","html_url":"https://github.com/jeremych1000","followers_url":"https://api.github.com/users/jeremych1000/followers","following_url":"https://api.github.com/users/jeremych1000/following{/other_user}","gists_url":"https://api.github.com/users/jeremych1000/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremych1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremych1000/subscriptions","organizations_url":"https://api.github.com/users/jeremych1000/orgs","repos_url":"https://api.github.com/users/jeremych1000/repos","events_url":"https://api.github.com/users/jeremych1000/events{/privacy}","received_events_url":"https://api.github.com/users/jeremych1000/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T14:49:24Z","updated_at":"2016-11-05T14:49:24Z","body":"@zhiyb Needs gnu++11 on my CMakeLists instead of c++11 interestingly."}}
{"actor":{"display_login":"jeremych1000"}}