{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/comments/47192779","id":47192779,"diff_hunk":"@@ -1253,7 +1253,20 @@ extension NSString {\n     }\n     \n     public convenience init(contentsOfFile path: String, encoding enc: UInt) throws {\n-        NSUnimplemented()    \n+        let readResult = try NSData.readBytesFromFileWithExtendedAttributes(path, options: [])\n+        guard let cf = CFStringCreateWithBytes(kCFAllocatorDefault, UnsafePointer<UInt8>(readResult.bytes), readResult.length, CFStringConvertNSStringEncodingToEncoding(enc), true) else {\n+            throw NSError(domain: NSCocoaErrorDomain, code: NSCocoaError.CoderReadCorruptError.rawValue, userInfo: [\n+                \"NSDebugDescription\" : \"Unable to Creates a string from a buffer containing characters in a specified encoding.\"","path":"Foundation/NSString.swift","position":8,"original_position":8,"commit_id":"8ec662738115169af68ad5d5d5b67932d0d6c940","original_commit_id":"8ec662738115169af68ad5d5d5b67932d0d6c940","user":{"login":"johankool","id":68731,"avatar_url":"https://avatars.githubusercontent.com/u/68731?v=3","gravatar_id":"","url":"https://api.github.com/users/johankool","html_url":"https://github.com/johankool","followers_url":"https://api.github.com/users/johankool/followers","following_url":"https://api.github.com/users/johankool/following{/other_user}","gists_url":"https://api.github.com/users/johankool/gists{/gist_id}","starred_url":"https://api.github.com/users/johankool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johankool/subscriptions","organizations_url":"https://api.github.com/users/johankool/orgs","repos_url":"https://api.github.com/users/johankool/repos","events_url":"https://api.github.com/users/johankool/events{/privacy}","received_events_url":"https://api.github.com/users/johankool/received_events","type":"User","site_admin":false},"body":"Alternative error description suggestion: Unable to create a string using the specified encoding.","created_at":"2015-12-10T06:18:01Z","updated_at":"2015-12-10T06:18:01Z","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/108#discussion_r47192779","pull_request_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/comments/47192779"},"html":{"href":"https://github.com/apple/swift-corelibs-foundation/pull/108#discussion_r47192779"},"pull_request":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108","id":53211434,"html_url":"https://github.com/apple/swift-corelibs-foundation/pull/108","diff_url":"https://github.com/apple/swift-corelibs-foundation/pull/108.diff","patch_url":"https://github.com/apple/swift-corelibs-foundation/pull/108.patch","issue_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/108","number":108,"state":"open","locked":false,"title":"implement the init(contentsOfFile) method in NSString","user":{"login":"zixun","id":6824547,"avatar_url":"https://avatars.githubusercontent.com/u/6824547?v=3","gravatar_id":"","url":"https://api.github.com/users/zixun","html_url":"https://github.com/zixun","followers_url":"https://api.github.com/users/zixun/followers","following_url":"https://api.github.com/users/zixun/following{/other_user}","gists_url":"https://api.github.com/users/zixun/gists{/gist_id}","starred_url":"https://api.github.com/users/zixun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixun/subscriptions","organizations_url":"https://api.github.com/users/zixun/orgs","repos_url":"https://api.github.com/users/zixun/repos","events_url":"https://api.github.com/users/zixun/events{/privacy}","received_events_url":"https://api.github.com/users/zixun/received_events","type":"User","site_admin":false},"body":"implement the init(contentsOfFile) method in NSString","created_at":"2015-12-10T03:27:05Z","updated_at":"2015-12-10T06:18:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d5da631f5d170e7096e79c9e000633aefecb3ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108/commits","review_comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108/comments","review_comment_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/108/comments","statuses_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/statuses/8ec662738115169af68ad5d5d5b67932d0d6c940","head":{"label":"zixun:master","ref":"master","sha":"8ec662738115169af68ad5d5d5b67932d0d6c940","user":{"login":"zixun","id":6824547,"avatar_url":"https://avatars.githubusercontent.com/u/6824547?v=3","gravatar_id":"","url":"https://api.github.com/users/zixun","html_url":"https://github.com/zixun","followers_url":"https://api.github.com/users/zixun/followers","following_url":"https://api.github.com/users/zixun/following{/other_user}","gists_url":"https://api.github.com/users/zixun/gists{/gist_id}","starred_url":"https://api.github.com/users/zixun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixun/subscriptions","organizations_url":"https://api.github.com/users/zixun/orgs","repos_url":"https://api.github.com/users/zixun/repos","events_url":"https://api.github.com/users/zixun/events{/privacy}","received_events_url":"https://api.github.com/users/zixun/received_events","type":"User","site_admin":false},"repo":{"id":47734991,"name":"swift-corelibs-foundation","full_name":"zixun/swift-corelibs-foundation","owner":{"login":"zixun","id":6824547,"avatar_url":"https://avatars.githubusercontent.com/u/6824547?v=3","gravatar_id":"","url":"https://api.github.com/users/zixun","html_url":"https://github.com/zixun","followers_url":"https://api.github.com/users/zixun/followers","following_url":"https://api.github.com/users/zixun/following{/other_user}","gists_url":"https://api.github.com/users/zixun/gists{/gist_id}","starred_url":"https://api.github.com/users/zixun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixun/subscriptions","organizations_url":"https://api.github.com/users/zixun/orgs","repos_url":"https://api.github.com/users/zixun/repos","events_url":"https://api.github.com/users/zixun/events{/privacy}","received_events_url":"https://api.github.com/users/zixun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zixun/swift-corelibs-foundation","description":"The Foundation Project, providing core utilities, internationalization, and OS independence","fork":true,"url":"https://api.github.com/repos/zixun/swift-corelibs-foundation","forks_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/forks","keys_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/teams","hooks_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/hooks","issue_events_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/issues/events{/number}","events_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/events","assignees_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/assignees{/user}","branches_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/branches{/branch}","tags_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/tags","blobs_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/git/refs{/sha}","trees_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/statuses/{sha}","languages_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/languages","stargazers_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/stargazers","contributors_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/contributors","subscribers_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/subscribers","subscription_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/subscription","commits_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/commits{/sha}","git_commits_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/git/commits{/sha}","comments_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/comments{/number}","issue_comment_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/issues/comments{/number}","contents_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/contents/{+path}","compare_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/merges","archive_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/downloads","issues_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/issues{/number}","pulls_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/pulls{/number}","milestones_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/milestones{/number}","notifications_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/labels{/name}","releases_url":"https://api.github.com/repos/zixun/swift-corelibs-foundation/releases{/id}","created_at":"2015-12-10T03:19:19Z","updated_at":"2015-12-10T03:19:22Z","pushed_at":"2015-12-10T05:11:48Z","git_url":"git://github.com/zixun/swift-corelibs-foundation.git","ssh_url":"git@github.com:zixun/swift-corelibs-foundation.git","clone_url":"https://github.com/zixun/swift-corelibs-foundation.git","svn_url":"https://github.com/zixun/swift-corelibs-foundation","homepage":"swift.org","size":2766,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apple:master","ref":"master","sha":"738eacd0c94686cd0a55f60103748b7abff8ac02","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":45863890,"name":"swift-corelibs-foundation","full_name":"apple/swift-corelibs-foundation","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift-corelibs-foundation","description":"The Foundation Project, providing core utilities, internationalization, and OS independence","fork":false,"url":"https://api.github.com/repos/apple/swift-corelibs-foundation","forks_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/forks","keys_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/teams","hooks_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/hooks","issue_events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/events","assignees_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/tags","blobs_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/languages","stargazers_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/stargazers","contributors_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/contributors","subscribers_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/subscribers","subscription_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/subscription","commits_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/merges","archive_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/downloads","issues_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/releases{/id}","created_at":"2015-11-09T20:12:23Z","updated_at":"2015-12-10T06:04:49Z","pushed_at":"2015-12-10T05:37:04Z","git_url":"git://github.com/apple/swift-corelibs-foundation.git","ssh_url":"git@github.com:apple/swift-corelibs-foundation.git","clone_url":"https://github.com/apple/swift-corelibs-foundation.git","svn_url":"https://github.com/apple/swift-corelibs-foundation","homepage":"swift.org","size":2848,"stargazers_count":1310,"watchers_count":1310,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":216,"mirror_url":null,"open_issues_count":20,"forks":216,"open_issues":20,"watchers":1310,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108"},"html":{"href":"https://github.com/apple/swift-corelibs-foundation/pull/108"},"issue":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/108"},"comments":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift-corelibs-foundation/statuses/8ec662738115169af68ad5d5d5b67932d0d6c940"}}}}