{"action":"created","comment":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/comments/63793643","id":63793643,"diff_hunk":"@@ -5,6 +5,8 @@ import stat\n \n from .helpers import posix_acl_use_stored_uid_gid, user2uid, group2gid, safe_decode, safe_encode\n from .platform_base import SyncFile as BaseSyncFile\n+from .platform_posix import swidth\n+","path":"borg/platform_linux.pyx","position":5,"original_position":5,"commit_id":"a8e457f93521c9c5a917412d96415007a4977bfb","original_commit_id":"a8e457f93521c9c5a917412d96415007a4977bfb","user":{"login":"enkore","id":1330164,"avatar_url":"https://avatars.githubusercontent.com/u/1330164?v=3","gravatar_id":"","url":"https://api.github.com/users/enkore","html_url":"https://github.com/enkore","followers_url":"https://api.github.com/users/enkore/followers","following_url":"https://api.github.com/users/enkore/following{/other_user}","gists_url":"https://api.github.com/users/enkore/gists{/gist_id}","starred_url":"https://api.github.com/users/enkore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enkore/subscriptions","organizations_url":"https://api.github.com/users/enkore/orgs","repos_url":"https://api.github.com/users/enkore/repos","events_url":"https://api.github.com/users/enkore/events{/privacy}","received_events_url":"https://api.github.com/users/enkore/received_events","type":"User","site_admin":false},"body":"Do these in platform.py instead? Considering Windows would also only add ~two lines there.","created_at":"2016-05-18T22:26:02Z","updated_at":"2016-05-18T22:26:02Z","html_url":"https://github.com/borgbackup/borg/pull/1053#discussion_r63793643","pull_request_url":"https://api.github.com/repos/borgbackup/borg/pulls/1053","_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments/63793643"},"html":{"href":"https://github.com/borgbackup/borg/pull/1053#discussion_r63793643"},"pull_request":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1053"}}},"pull_request":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/1053","id":70460443,"html_url":"https://github.com/borgbackup/borg/pull/1053","diff_url":"https://github.com/borgbackup/borg/pull/1053.diff","patch_url":"https://github.com/borgbackup/borg/pull/1053.patch","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/1053","number":1053,"state":"open","locked":false,"title":"add swidth call, fixes #1051","user":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"body":"on posix platforms, this is a small wrapper around wcswidth(3).\r\non non-supported platforms, it just uses len(s), as before.","created_at":"2016-05-18T02:28:01Z","updated_at":"2016-05-18T22:26:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b6375f4c23dd5445d4252ba71047c0e3f13b5e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/borgbackup/borg/pulls/1053/commits","review_comments_url":"https://api.github.com/repos/borgbackup/borg/pulls/1053/comments","review_comment_url":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1053/comments","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/a8e457f93521c9c5a917412d96415007a4977bfb","head":{"label":"ThomasWaldmann:wcswidth","ref":"wcswidth","sha":"a8e457f93521c9c5a917412d96415007a4977bfb","user":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"repo":{"id":35605377,"name":"borg","full_name":"ThomasWaldmann/borg","owner":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThomasWaldmann/borg","description":"Backup Software","fork":true,"url":"https://api.github.com/repos/ThomasWaldmann/borg","forks_url":"https://api.github.com/repos/ThomasWaldmann/borg/forks","keys_url":"https://api.github.com/repos/ThomasWaldmann/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThomasWaldmann/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThomasWaldmann/borg/teams","hooks_url":"https://api.github.com/repos/ThomasWaldmann/borg/hooks","issue_events_url":"https://api.github.com/repos/ThomasWaldmann/borg/issues/events{/number}","events_url":"https://api.github.com/repos/ThomasWaldmann/borg/events","assignees_url":"https://api.github.com/repos/ThomasWaldmann/borg/assignees{/user}","branches_url":"https://api.github.com/repos/ThomasWaldmann/borg/branches{/branch}","tags_url":"https://api.github.com/repos/ThomasWaldmann/borg/tags","blobs_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThomasWaldmann/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/ThomasWaldmann/borg/languages","stargazers_url":"https://api.github.com/repos/ThomasWaldmann/borg/stargazers","contributors_url":"https://api.github.com/repos/ThomasWaldmann/borg/contributors","subscribers_url":"https://api.github.com/repos/ThomasWaldmann/borg/subscribers","subscription_url":"https://api.github.com/repos/ThomasWaldmann/borg/subscription","commits_url":"https://api.github.com/repos/ThomasWaldmann/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThomasWaldmann/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThomasWaldmann/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThomasWaldmann/borg/contents/{+path}","compare_url":"https://api.github.com/repos/ThomasWaldmann/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThomasWaldmann/borg/merges","archive_url":"https://api.github.com/repos/ThomasWaldmann/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThomasWaldmann/borg/downloads","issues_url":"https://api.github.com/repos/ThomasWaldmann/borg/issues{/number}","pulls_url":"https://api.github.com/repos/ThomasWaldmann/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/ThomasWaldmann/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/ThomasWaldmann/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThomasWaldmann/borg/labels{/name}","releases_url":"https://api.github.com/repos/ThomasWaldmann/borg/releases{/id}","deployments_url":"https://api.github.com/repos/ThomasWaldmann/borg/deployments","created_at":"2015-05-14T10:27:42Z","updated_at":"2016-01-11T22:17:17Z","pushed_at":"2016-05-18T21:59:53Z","git_url":"git://github.com/ThomasWaldmann/borg.git","ssh_url":"git@github.com:ThomasWaldmann/borg.git","clone_url":"https://github.com/ThomasWaldmann/borg.git","svn_url":"https://github.com/ThomasWaldmann/borg","homepage":null,"size":3917,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"borgbackup:master","ref":"master","sha":"088bccc64903c9566aa8d110ab1fed5c27985594","user":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"repo":{"id":35517126,"name":"borg","full_name":"borgbackup/borg","owner":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/borgbackup/borg","description":"Deduplicating backup program with compression and authenticated encryption.","fork":false,"url":"https://api.github.com/repos/borgbackup/borg","forks_url":"https://api.github.com/repos/borgbackup/borg/forks","keys_url":"https://api.github.com/repos/borgbackup/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/borgbackup/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/borgbackup/borg/teams","hooks_url":"https://api.github.com/repos/borgbackup/borg/hooks","issue_events_url":"https://api.github.com/repos/borgbackup/borg/issues/events{/number}","events_url":"https://api.github.com/repos/borgbackup/borg/events","assignees_url":"https://api.github.com/repos/borgbackup/borg/assignees{/user}","branches_url":"https://api.github.com/repos/borgbackup/borg/branches{/branch}","tags_url":"https://api.github.com/repos/borgbackup/borg/tags","blobs_url":"https://api.github.com/repos/borgbackup/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/borgbackup/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/borgbackup/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/borgbackup/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/borgbackup/borg/languages","stargazers_url":"https://api.github.com/repos/borgbackup/borg/stargazers","contributors_url":"https://api.github.com/repos/borgbackup/borg/contributors","subscribers_url":"https://api.github.com/repos/borgbackup/borg/subscribers","subscription_url":"https://api.github.com/repos/borgbackup/borg/subscription","commits_url":"https://api.github.com/repos/borgbackup/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/borgbackup/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/borgbackup/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/borgbackup/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/borgbackup/borg/contents/{+path}","compare_url":"https://api.github.com/repos/borgbackup/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/borgbackup/borg/merges","archive_url":"https://api.github.com/repos/borgbackup/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/borgbackup/borg/downloads","issues_url":"https://api.github.com/repos/borgbackup/borg/issues{/number}","pulls_url":"https://api.github.com/repos/borgbackup/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/borgbackup/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/borgbackup/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/borgbackup/borg/labels{/name}","releases_url":"https://api.github.com/repos/borgbackup/borg/releases{/id}","deployments_url":"https://api.github.com/repos/borgbackup/borg/deployments","created_at":"2015-05-12T23:10:47Z","updated_at":"2016-05-18T15:26:12Z","pushed_at":"2016-05-18T21:59:54Z","git_url":"git://github.com/borgbackup/borg.git","ssh_url":"git@github.com:borgbackup/borg.git","clone_url":"https://github.com/borgbackup/borg.git","svn_url":"https://github.com/borgbackup/borg","homepage":"https://borgbackup.readthedocs.io/","size":4723,"stargazers_count":1158,"watchers_count":1158,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":162,"forks":95,"open_issues":162,"watchers":1158,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1053"},"html":{"href":"https://github.com/borgbackup/borg/pull/1053"},"issue":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1053"},"comments":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1053/comments"},"review_comments":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1053/comments"},"review_comment":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1053/commits"},"statuses":{"href":"https://api.github.com/repos/borgbackup/borg/statuses/a8e457f93521c9c5a917412d96415007a4977bfb"}}}}