{"action":"opened","number":107,"pull_request":{"url":"https://api.github.com/repos/metaeducation/ren-c/pulls/107","id":46065522,"html_url":"https://github.com/metaeducation/ren-c/pull/107","diff_url":"https://github.com/metaeducation/ren-c/pull/107.diff","patch_url":"https://github.com/metaeducation/ren-c/pull/107.patch","issue_url":"https://api.github.com/repos/metaeducation/ren-c/issues/107","number":107,"state":"open","locked":false,"title":"(via meshpoint) Change Encode_UTF8 API","user":{"login":"hostilefork","id":20440,"avatar_url":"https://avatars.githubusercontent.com/u/20440?v=3","gravatar_id":"","url":"https://api.github.com/users/hostilefork","html_url":"https://github.com/hostilefork","followers_url":"https://api.github.com/users/hostilefork/followers","following_url":"https://api.github.com/users/hostilefork/following{/other_user}","gists_url":"https://api.github.com/users/hostilefork/gists{/gist_id}","starred_url":"https://api.github.com/users/hostilefork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostilefork/subscriptions","organizations_url":"https://api.github.com/users/hostilefork/orgs","repos_url":"https://api.github.com/users/hostilefork/repos","events_url":"https://api.github.com/users/hostilefork/events{/privacy}","received_events_url":"https://api.github.com/users/hostilefork/received_events","type":"User","site_admin":false},"body":"The \"len\" argument of Encode_UTF8() was used as the source length on input and\r\nas the result length on output. This caused some confusion in the calling code\r\nabout the meaning of a variable before and after the call. Now \"len\" is updated\r\nto the amount of source used, and the result length is in the function return\r\nvalue. The meaning of \"len\" argument and return value of RL_Encode_UTF8() is\r\nchanged accordingly. This change fixes bugs involving calls to Encode_UTF8().\r\n\r\nAlso, \"uni\" and \"ccr\" arguments of Encode_UTF8() and Length_As_UTF8() are\r\nreplaced with one \"opts\" argument. REBUNI* source is signalled by\r\n\"ENC_OPT_UNISRC\" flag, and CRLF handling is signalled by \"ENC_OPT_CRLF\" flag.\r\nMake_UTF8_Binary() helper function is added that calls Length_As_UTF8(),\r\nMake_Binary(), Encode_UTF8().","created_at":"2015-09-25T22:39:38Z","updated_at":"2015-09-25T22:39:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/metaeducation/ren-c/pulls/107/commits","review_comments_url":"https://api.github.com/repos/metaeducation/ren-c/pulls/107/comments","review_comment_url":"https://api.github.com/repos/metaeducation/ren-c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metaeducation/ren-c/issues/107/comments","statuses_url":"https://api.github.com/repos/metaeducation/ren-c/statuses/5321a96c87adee247e942ffd6c0809ef2e06d024","head":{"label":"hostilefork:utf8-1","ref":"utf8-1","sha":"5321a96c87adee247e942ffd6c0809ef2e06d024","user":{"login":"hostilefork","id":20440,"avatar_url":"https://avatars.githubusercontent.com/u/20440?v=3","gravatar_id":"","url":"https://api.github.com/users/hostilefork","html_url":"https://github.com/hostilefork","followers_url":"https://api.github.com/users/hostilefork/followers","following_url":"https://api.github.com/users/hostilefork/following{/other_user}","gists_url":"https://api.github.com/users/hostilefork/gists{/gist_id}","starred_url":"https://api.github.com/users/hostilefork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostilefork/subscriptions","organizations_url":"https://api.github.com/users/hostilefork/orgs","repos_url":"https://api.github.com/users/hostilefork/repos","events_url":"https://api.github.com/users/hostilefork/events{/privacy}","received_events_url":"https://api.github.com/users/hostilefork/received_events","type":"User","site_admin":false},"repo":{"id":7182655,"name":"rebol","full_name":"hostilefork/rebol","owner":{"login":"hostilefork","id":20440,"avatar_url":"https://avatars.githubusercontent.com/u/20440?v=3","gravatar_id":"","url":"https://api.github.com/users/hostilefork","html_url":"https://github.com/hostilefork","followers_url":"https://api.github.com/users/hostilefork/followers","following_url":"https://api.github.com/users/hostilefork/following{/other_user}","gists_url":"https://api.github.com/users/hostilefork/gists{/gist_id}","starred_url":"https://api.github.com/users/hostilefork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostilefork/subscriptions","organizations_url":"https://api.github.com/users/hostilefork/orgs","repos_url":"https://api.github.com/users/hostilefork/repos","events_url":"https://api.github.com/users/hostilefork/events{/privacy}","received_events_url":"https://api.github.com/users/hostilefork/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hostilefork/rebol","description":"Source code for the Rebol interpreter","fork":true,"url":"https://api.github.com/repos/hostilefork/rebol","forks_url":"https://api.github.com/repos/hostilefork/rebol/forks","keys_url":"https://api.github.com/repos/hostilefork/rebol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hostilefork/rebol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hostilefork/rebol/teams","hooks_url":"https://api.github.com/repos/hostilefork/rebol/hooks","issue_events_url":"https://api.github.com/repos/hostilefork/rebol/issues/events{/number}","events_url":"https://api.github.com/repos/hostilefork/rebol/events","assignees_url":"https://api.github.com/repos/hostilefork/rebol/assignees{/user}","branches_url":"https://api.github.com/repos/hostilefork/rebol/branches{/branch}","tags_url":"https://api.github.com/repos/hostilefork/rebol/tags","blobs_url":"https://api.github.com/repos/hostilefork/rebol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hostilefork/rebol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hostilefork/rebol/git/refs{/sha}","trees_url":"https://api.github.com/repos/hostilefork/rebol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hostilefork/rebol/statuses/{sha}","languages_url":"https://api.github.com/repos/hostilefork/rebol/languages","stargazers_url":"https://api.github.com/repos/hostilefork/rebol/stargazers","contributors_url":"https://api.github.com/repos/hostilefork/rebol/contributors","subscribers_url":"https://api.github.com/repos/hostilefork/rebol/subscribers","subscription_url":"https://api.github.com/repos/hostilefork/rebol/subscription","commits_url":"https://api.github.com/repos/hostilefork/rebol/commits{/sha}","git_commits_url":"https://api.github.com/repos/hostilefork/rebol/git/commits{/sha}","comments_url":"https://api.github.com/repos/hostilefork/rebol/comments{/number}","issue_comment_url":"https://api.github.com/repos/hostilefork/rebol/issues/comments{/number}","contents_url":"https://api.github.com/repos/hostilefork/rebol/contents/{+path}","compare_url":"https://api.github.com/repos/hostilefork/rebol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hostilefork/rebol/merges","archive_url":"https://api.github.com/repos/hostilefork/rebol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hostilefork/rebol/downloads","issues_url":"https://api.github.com/repos/hostilefork/rebol/issues{/number}","pulls_url":"https://api.github.com/repos/hostilefork/rebol/pulls{/number}","milestones_url":"https://api.github.com/repos/hostilefork/rebol/milestones{/number}","notifications_url":"https://api.github.com/repos/hostilefork/rebol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hostilefork/rebol/labels{/name}","releases_url":"https://api.github.com/repos/hostilefork/rebol/releases{/id}","created_at":"2012-12-15T18:44:43Z","updated_at":"2015-09-07T09:14:03Z","pushed_at":"2015-09-25T22:38:52Z","git_url":"git://github.com/hostilefork/rebol.git","ssh_url":"git@github.com:hostilefork/rebol.git","clone_url":"https://github.com/hostilefork/rebol.git","svn_url":"https://github.com/hostilefork/rebol","homepage":"http://www.rebol.com/","size":42772,"stargazers_count":6,"watchers_count":6,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"metaeducation:master","ref":"master","sha":"21655be88a0228cd4baef665c392eb245908d5a1","user":{"login":"metaeducation","id":8308455,"avatar_url":"https://avatars.githubusercontent.com/u/8308455?v=3","gravatar_id":"","url":"https://api.github.com/users/metaeducation","html_url":"https://github.com/metaeducation","followers_url":"https://api.github.com/users/metaeducation/followers","following_url":"https://api.github.com/users/metaeducation/following{/other_user}","gists_url":"https://api.github.com/users/metaeducation/gists{/gist_id}","starred_url":"https://api.github.com/users/metaeducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaeducation/subscriptions","organizations_url":"https://api.github.com/users/metaeducation/orgs","repos_url":"https://api.github.com/users/metaeducation/repos","events_url":"https://api.github.com/users/metaeducation/events{/privacy}","received_events_url":"https://api.github.com/users/metaeducation/received_events","type":"Organization","site_admin":false},"repo":{"id":35589720,"name":"ren-c","full_name":"metaeducation/ren-c","owner":{"login":"metaeducation","id":8308455,"avatar_url":"https://avatars.githubusercontent.com/u/8308455?v=3","gravatar_id":"","url":"https://api.github.com/users/metaeducation","html_url":"https://github.com/metaeducation","followers_url":"https://api.github.com/users/metaeducation/followers","following_url":"https://api.github.com/users/metaeducation/following{/other_user}","gists_url":"https://api.github.com/users/metaeducation/gists{/gist_id}","starred_url":"https://api.github.com/users/metaeducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaeducation/subscriptions","organizations_url":"https://api.github.com/users/metaeducation/orgs","repos_url":"https://api.github.com/users/metaeducation/repos","events_url":"https://api.github.com/users/metaeducation/events{/privacy}","received_events_url":"https://api.github.com/users/metaeducation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metaeducation/ren-c","description":"Library for embedding a Rebol interpreter into C codebases","fork":true,"url":"https://api.github.com/repos/metaeducation/ren-c","forks_url":"https://api.github.com/repos/metaeducation/ren-c/forks","keys_url":"https://api.github.com/repos/metaeducation/ren-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metaeducation/ren-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metaeducation/ren-c/teams","hooks_url":"https://api.github.com/repos/metaeducation/ren-c/hooks","issue_events_url":"https://api.github.com/repos/metaeducation/ren-c/issues/events{/number}","events_url":"https://api.github.com/repos/metaeducation/ren-c/events","assignees_url":"https://api.github.com/repos/metaeducation/ren-c/assignees{/user}","branches_url":"https://api.github.com/repos/metaeducation/ren-c/branches{/branch}","tags_url":"https://api.github.com/repos/metaeducation/ren-c/tags","blobs_url":"https://api.github.com/repos/metaeducation/ren-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metaeducation/ren-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metaeducation/ren-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/metaeducation/ren-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metaeducation/ren-c/statuses/{sha}","languages_url":"https://api.github.com/repos/metaeducation/ren-c/languages","stargazers_url":"https://api.github.com/repos/metaeducation/ren-c/stargazers","contributors_url":"https://api.github.com/repos/metaeducation/ren-c/contributors","subscribers_url":"https://api.github.com/repos/metaeducation/ren-c/subscribers","subscription_url":"https://api.github.com/repos/metaeducation/ren-c/subscription","commits_url":"https://api.github.com/repos/metaeducation/ren-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/metaeducation/ren-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/metaeducation/ren-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/metaeducation/ren-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/metaeducation/ren-c/contents/{+path}","compare_url":"https://api.github.com/repos/metaeducation/ren-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metaeducation/ren-c/merges","archive_url":"https://api.github.com/repos/metaeducation/ren-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metaeducation/ren-c/downloads","issues_url":"https://api.github.com/repos/metaeducation/ren-c/issues{/number}","pulls_url":"https://api.github.com/repos/metaeducation/ren-c/pulls{/number}","milestones_url":"https://api.github.com/repos/metaeducation/ren-c/milestones{/number}","notifications_url":"https://api.github.com/repos/metaeducation/ren-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metaeducation/ren-c/labels{/name}","releases_url":"https://api.github.com/repos/metaeducation/ren-c/releases{/id}","created_at":"2015-05-14T03:55:55Z","updated_at":"2015-09-13T02:50:59Z","pushed_at":"2015-09-25T12:33:57Z","git_url":"git://github.com/metaeducation/ren-c.git","ssh_url":"git@github.com:metaeducation/ren-c.git","clone_url":"https://github.com/metaeducation/ren-c.git","svn_url":"https://github.com/metaeducation/ren-c","homepage":"","size":8357,"stargazers_count":17,"watchers_count":17,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":13,"forks":10,"open_issues":13,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metaeducation/ren-c/pulls/107"},"html":{"href":"https://github.com/metaeducation/ren-c/pull/107"},"issue":{"href":"https://api.github.com/repos/metaeducation/ren-c/issues/107"},"comments":{"href":"https://api.github.com/repos/metaeducation/ren-c/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/metaeducation/ren-c/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/metaeducation/ren-c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metaeducation/ren-c/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/metaeducation/ren-c/statuses/5321a96c87adee247e942ffd6c0809ef2e06d024"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":118,"deletions":99,"changed_files":8}}