{"action":"created","issue":{"url":"https://api.github.com/repos/chrippa/livestreamer/issues/1103","labels_url":"https://api.github.com/repos/chrippa/livestreamer/issues/1103/labels{/name}","comments_url":"https://api.github.com/repos/chrippa/livestreamer/issues/1103/comments","events_url":"https://api.github.com/repos/chrippa/livestreamer/issues/1103/events","html_url":"https://github.com/chrippa/livestreamer/issues/1103","id":113148322,"number":1103,"title":"stdout buffer compatibility","user":{"login":"Drekin","id":7892803,"avatar_url":"https://avatars.githubusercontent.com/u/7892803?v=3","gravatar_id":"","url":"https://api.github.com/users/Drekin","html_url":"https://github.com/Drekin","followers_url":"https://api.github.com/users/Drekin/followers","following_url":"https://api.github.com/users/Drekin/following{/other_user}","gists_url":"https://api.github.com/users/Drekin/gists{/gist_id}","starred_url":"https://api.github.com/users/Drekin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drekin/subscriptions","organizations_url":"https://api.github.com/users/Drekin/orgs","repos_url":"https://api.github.com/users/Drekin/repos","events_url":"https://api.github.com/users/Drekin/events{/privacy}","received_events_url":"https://api.github.com/users/Drekin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-24T09:54:01Z","updated_at":"2015-11-14T09:05:54Z","closed_at":null,"body":"Hello. In `livestreamer_cli/compat.py` you use `sys.stdout.buffer` object. That results in error if `sys.stdout` has no buffer object. Also do you assume anything about the buffer object? Note that it doesn't have to be ASCII compatible. For example on Windows it may lead to an interactive console assuming UTF-16-LE encoded text, so whatever you send there should be aware of what the buffer is expecting.\r\n\r\nI'm maintaining https://github.com/Drekin/win-unicode-console package and I'd like to be compatible. I'm asking because of https://github.com/Drekin/win-unicode-console/issues/16."},"comment":{"url":"https://api.github.com/repos/chrippa/livestreamer/issues/comments/156672951","html_url":"https://github.com/chrippa/livestreamer/issues/1103#issuecomment-156672951","issue_url":"https://api.github.com/repos/chrippa/livestreamer/issues/1103","id":156672951,"user":{"login":"Drekin","id":7892803,"avatar_url":"https://avatars.githubusercontent.com/u/7892803?v=3","gravatar_id":"","url":"https://api.github.com/users/Drekin","html_url":"https://github.com/Drekin","followers_url":"https://api.github.com/users/Drekin/followers","following_url":"https://api.github.com/users/Drekin/following{/other_user}","gists_url":"https://api.github.com/users/Drekin/gists{/gist_id}","starred_url":"https://api.github.com/users/Drekin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drekin/subscriptions","organizations_url":"https://api.github.com/users/Drekin/orgs","repos_url":"https://api.github.com/users/Drekin/repos","events_url":"https://api.github.com/users/Drekin/events{/privacy}","received_events_url":"https://api.github.com/users/Drekin/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T09:05:54Z","updated_at":"2015-11-14T09:05:54Z","body":"Note that https://docs.python.org/3/library/sys.html#sys.stdout says that, `sys.stdout` doesn't have to have the `buffer` attribute."}}