{"action":"created","comment":{"url":"https://api.github.com/repos/pyinvoke/invoke/pulls/comments/39340938","id":39340938,"diff_hunk":"@@ -216,7 +216,7 @@ def run(self, command, **kwargs):\n             err_stream = sys.stderr\n         # Echo\n         if opts['echo']:\n-            print(\"\\033[1;37m{0}\\033[0m\".format(command))\n+            print(u\"\\033[1;37m{0}\\033[0m\".format(command))","path":"invoke/runners.py","position":5,"original_position":5,"commit_id":"03a84c287a7e2eb9327826c04d0952d9340b8964","original_commit_id":"03a84c287a7e2eb9327826c04d0952d9340b8964","user":{"login":"frol","id":304265,"avatar_url":"https://avatars.githubusercontent.com/u/304265?v=3","gravatar_id":"","url":"https://api.github.com/users/frol","html_url":"https://github.com/frol","followers_url":"https://api.github.com/users/frol/followers","following_url":"https://api.github.com/users/frol/following{/other_user}","gists_url":"https://api.github.com/users/frol/gists{/gist_id}","starred_url":"https://api.github.com/users/frol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frol/subscriptions","organizations_url":"https://api.github.com/users/frol/orgs","repos_url":"https://api.github.com/users/frol/repos","events_url":"https://api.github.com/users/frol/events{/privacy}","received_events_url":"https://api.github.com/users/frol/received_events","type":"User","site_admin":false},"body":"Windows is crazy: http://stackoverflow.com/questions/878972/windows-cmd-encoding-change-causes-python-crash/3259271\r\nI'm still trying to get this work. As well as other bugs in this PR. It is not that easy as I thought at the beginning.","created_at":"2015-09-12T20:10:33Z","updated_at":"2015-09-12T20:10:33Z","html_url":"https://github.com/pyinvoke/invoke/pull/274#discussion_r39340938","pull_request_url":"https://api.github.com/repos/pyinvoke/invoke/pulls/274","_links":{"self":{"href":"https://api.github.com/repos/pyinvoke/invoke/pulls/comments/39340938"},"html":{"href":"https://github.com/pyinvoke/invoke/pull/274#discussion_r39340938"},"pull_request":{"href":"https://api.github.com/repos/pyinvoke/invoke/pulls/274"}}},"pull_request":{"url":"https://api.github.com/repos/pyinvoke/invoke/pulls/274","id":44784647,"html_url":"https://github.com/pyinvoke/invoke/pull/274","diff_url":"https://github.com/pyinvoke/invoke/pull/274.diff","patch_url":"https://github.com/pyinvoke/invoke/pull/274.patch","issue_url":"https://api.github.com/repos/pyinvoke/invoke/issues/274","number":274,"state":"open","locked":false,"title":"Fixed an issue of `run` output encoding","user":{"login":"frol","id":304265,"avatar_url":"https://avatars.githubusercontent.com/u/304265?v=3","gravatar_id":"","url":"https://api.github.com/users/frol","html_url":"https://github.com/frol","followers_url":"https://api.github.com/users/frol/followers","following_url":"https://api.github.com/users/frol/following{/other_user}","gists_url":"https://api.github.com/users/frol/gists{/gist_id}","starred_url":"https://api.github.com/users/frol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frol/subscriptions","organizations_url":"https://api.github.com/users/frol/orgs","repos_url":"https://api.github.com/users/frol/repos","events_url":"https://api.github.com/users/frol/events{/privacy}","received_events_url":"https://api.github.com/users/frol/received_events","type":"User","site_admin":false},"body":"I've had a session with POSIX locale on Linux and a program that I've run pushed Unicode output anyway. This revealed a bug when user-requested/`locale.getpreferredencoding()` is UTF-8, but `sys.stdout` is ASCII.","created_at":"2015-09-11T13:53:18Z","updated_at":"2015-09-12T20:10:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"165ec2941f5424c24670dc068505c285342edb96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pyinvoke/invoke/pulls/274/commits","review_comments_url":"https://api.github.com/repos/pyinvoke/invoke/pulls/274/comments","review_comment_url":"https://api.github.com/repos/pyinvoke/invoke/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyinvoke/invoke/issues/274/comments","statuses_url":"https://api.github.com/repos/pyinvoke/invoke/statuses/03a84c287a7e2eb9327826c04d0952d9340b8964","head":{"label":"frol:patch-1","ref":"patch-1","sha":"03a84c287a7e2eb9327826c04d0952d9340b8964","user":{"login":"frol","id":304265,"avatar_url":"https://avatars.githubusercontent.com/u/304265?v=3","gravatar_id":"","url":"https://api.github.com/users/frol","html_url":"https://github.com/frol","followers_url":"https://api.github.com/users/frol/followers","following_url":"https://api.github.com/users/frol/following{/other_user}","gists_url":"https://api.github.com/users/frol/gists{/gist_id}","starred_url":"https://api.github.com/users/frol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frol/subscriptions","organizations_url":"https://api.github.com/users/frol/orgs","repos_url":"https://api.github.com/users/frol/repos","events_url":"https://api.github.com/users/frol/events{/privacy}","received_events_url":"https://api.github.com/users/frol/received_events","type":"User","site_admin":false},"repo":{"id":42305764,"name":"invoke","full_name":"frol/invoke","owner":{"login":"frol","id":304265,"avatar_url":"https://avatars.githubusercontent.com/u/304265?v=3","gravatar_id":"","url":"https://api.github.com/users/frol","html_url":"https://github.com/frol","followers_url":"https://api.github.com/users/frol/followers","following_url":"https://api.github.com/users/frol/following{/other_user}","gists_url":"https://api.github.com/users/frol/gists{/gist_id}","starred_url":"https://api.github.com/users/frol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frol/subscriptions","organizations_url":"https://api.github.com/users/frol/orgs","repos_url":"https://api.github.com/users/frol/repos","events_url":"https://api.github.com/users/frol/events{/privacy}","received_events_url":"https://api.github.com/users/frol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frol/invoke","description":"Simple Python task execution","fork":true,"url":"https://api.github.com/repos/frol/invoke","forks_url":"https://api.github.com/repos/frol/invoke/forks","keys_url":"https://api.github.com/repos/frol/invoke/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frol/invoke/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frol/invoke/teams","hooks_url":"https://api.github.com/repos/frol/invoke/hooks","issue_events_url":"https://api.github.com/repos/frol/invoke/issues/events{/number}","events_url":"https://api.github.com/repos/frol/invoke/events","assignees_url":"https://api.github.com/repos/frol/invoke/assignees{/user}","branches_url":"https://api.github.com/repos/frol/invoke/branches{/branch}","tags_url":"https://api.github.com/repos/frol/invoke/tags","blobs_url":"https://api.github.com/repos/frol/invoke/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frol/invoke/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frol/invoke/git/refs{/sha}","trees_url":"https://api.github.com/repos/frol/invoke/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frol/invoke/statuses/{sha}","languages_url":"https://api.github.com/repos/frol/invoke/languages","stargazers_url":"https://api.github.com/repos/frol/invoke/stargazers","contributors_url":"https://api.github.com/repos/frol/invoke/contributors","subscribers_url":"https://api.github.com/repos/frol/invoke/subscribers","subscription_url":"https://api.github.com/repos/frol/invoke/subscription","commits_url":"https://api.github.com/repos/frol/invoke/commits{/sha}","git_commits_url":"https://api.github.com/repos/frol/invoke/git/commits{/sha}","comments_url":"https://api.github.com/repos/frol/invoke/comments{/number}","issue_comment_url":"https://api.github.com/repos/frol/invoke/issues/comments{/number}","contents_url":"https://api.github.com/repos/frol/invoke/contents/{+path}","compare_url":"https://api.github.com/repos/frol/invoke/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frol/invoke/merges","archive_url":"https://api.github.com/repos/frol/invoke/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frol/invoke/downloads","issues_url":"https://api.github.com/repos/frol/invoke/issues{/number}","pulls_url":"https://api.github.com/repos/frol/invoke/pulls{/number}","milestones_url":"https://api.github.com/repos/frol/invoke/milestones{/number}","notifications_url":"https://api.github.com/repos/frol/invoke/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frol/invoke/labels{/name}","releases_url":"https://api.github.com/repos/frol/invoke/releases{/id}","created_at":"2015-09-11T11:55:18Z","updated_at":"2015-09-11T11:55:19Z","pushed_at":"2015-09-11T19:34:04Z","git_url":"git://github.com/frol/invoke.git","ssh_url":"git@github.com:frol/invoke.git","clone_url":"https://github.com/frol/invoke.git","svn_url":"https://github.com/frol/invoke","homepage":"http://pyinvoke.org","size":4121,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pyinvoke:master","ref":"master","sha":"ce3f6078277f243cfe8e6e27b8151dd3e3d2494f","user":{"login":"pyinvoke","id":1486921,"avatar_url":"https://avatars.githubusercontent.com/u/1486921?v=3","gravatar_id":"","url":"https://api.github.com/users/pyinvoke","html_url":"https://github.com/pyinvoke","followers_url":"https://api.github.com/users/pyinvoke/followers","following_url":"https://api.github.com/users/pyinvoke/following{/other_user}","gists_url":"https://api.github.com/users/pyinvoke/gists{/gist_id}","starred_url":"https://api.github.com/users/pyinvoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyinvoke/subscriptions","organizations_url":"https://api.github.com/users/pyinvoke/orgs","repos_url":"https://api.github.com/users/pyinvoke/repos","events_url":"https://api.github.com/users/pyinvoke/events{/privacy}","received_events_url":"https://api.github.com/users/pyinvoke/received_events","type":"Organization","site_admin":false},"repo":{"id":3587206,"name":"invoke","full_name":"pyinvoke/invoke","owner":{"login":"pyinvoke","id":1486921,"avatar_url":"https://avatars.githubusercontent.com/u/1486921?v=3","gravatar_id":"","url":"https://api.github.com/users/pyinvoke","html_url":"https://github.com/pyinvoke","followers_url":"https://api.github.com/users/pyinvoke/followers","following_url":"https://api.github.com/users/pyinvoke/following{/other_user}","gists_url":"https://api.github.com/users/pyinvoke/gists{/gist_id}","starred_url":"https://api.github.com/users/pyinvoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyinvoke/subscriptions","organizations_url":"https://api.github.com/users/pyinvoke/orgs","repos_url":"https://api.github.com/users/pyinvoke/repos","events_url":"https://api.github.com/users/pyinvoke/events{/privacy}","received_events_url":"https://api.github.com/users/pyinvoke/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyinvoke/invoke","description":"Simple Python task execution","fork":false,"url":"https://api.github.com/repos/pyinvoke/invoke","forks_url":"https://api.github.com/repos/pyinvoke/invoke/forks","keys_url":"https://api.github.com/repos/pyinvoke/invoke/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyinvoke/invoke/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyinvoke/invoke/teams","hooks_url":"https://api.github.com/repos/pyinvoke/invoke/hooks","issue_events_url":"https://api.github.com/repos/pyinvoke/invoke/issues/events{/number}","events_url":"https://api.github.com/repos/pyinvoke/invoke/events","assignees_url":"https://api.github.com/repos/pyinvoke/invoke/assignees{/user}","branches_url":"https://api.github.com/repos/pyinvoke/invoke/branches{/branch}","tags_url":"https://api.github.com/repos/pyinvoke/invoke/tags","blobs_url":"https://api.github.com/repos/pyinvoke/invoke/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyinvoke/invoke/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyinvoke/invoke/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyinvoke/invoke/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyinvoke/invoke/statuses/{sha}","languages_url":"https://api.github.com/repos/pyinvoke/invoke/languages","stargazers_url":"https://api.github.com/repos/pyinvoke/invoke/stargazers","contributors_url":"https://api.github.com/repos/pyinvoke/invoke/contributors","subscribers_url":"https://api.github.com/repos/pyinvoke/invoke/subscribers","subscription_url":"https://api.github.com/repos/pyinvoke/invoke/subscription","commits_url":"https://api.github.com/repos/pyinvoke/invoke/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyinvoke/invoke/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyinvoke/invoke/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyinvoke/invoke/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyinvoke/invoke/contents/{+path}","compare_url":"https://api.github.com/repos/pyinvoke/invoke/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyinvoke/invoke/merges","archive_url":"https://api.github.com/repos/pyinvoke/invoke/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyinvoke/invoke/downloads","issues_url":"https://api.github.com/repos/pyinvoke/invoke/issues{/number}","pulls_url":"https://api.github.com/repos/pyinvoke/invoke/pulls{/number}","milestones_url":"https://api.github.com/repos/pyinvoke/invoke/milestones{/number}","notifications_url":"https://api.github.com/repos/pyinvoke/invoke/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyinvoke/invoke/labels{/name}","releases_url":"https://api.github.com/repos/pyinvoke/invoke/releases{/id}","created_at":"2012-02-29T23:59:23Z","updated_at":"2015-09-11T12:18:20Z","pushed_at":"2015-09-11T22:55:49Z","git_url":"git://github.com/pyinvoke/invoke.git","ssh_url":"git@github.com:pyinvoke/invoke.git","clone_url":"https://github.com/pyinvoke/invoke.git","svn_url":"https://github.com/pyinvoke/invoke","homepage":"http://pyinvoke.org","size":4121,"stargazers_count":798,"watchers_count":798,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":82,"forks":81,"open_issues":82,"watchers":798,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pyinvoke/invoke/pulls/274"},"html":{"href":"https://github.com/pyinvoke/invoke/pull/274"},"issue":{"href":"https://api.github.com/repos/pyinvoke/invoke/issues/274"},"comments":{"href":"https://api.github.com/repos/pyinvoke/invoke/issues/274/comments"},"review_comments":{"href":"https://api.github.com/repos/pyinvoke/invoke/pulls/274/comments"},"review_comment":{"href":"https://api.github.com/repos/pyinvoke/invoke/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyinvoke/invoke/pulls/274/commits"},"statuses":{"href":"https://api.github.com/repos/pyinvoke/invoke/statuses/03a84c287a7e2eb9327826c04d0952d9340b8964"}}}}