{"action":"closed","issue":{"url":"https://api.github.com/repos/qorelanguage/qore/issues/1327","repository_url":"https://api.github.com/repos/qorelanguage/qore","labels_url":"https://api.github.com/repos/qorelanguage/qore/issues/1327/labels{/name}","comments_url":"https://api.github.com/repos/qorelanguage/qore/issues/1327/comments","events_url":"https://api.github.com/repos/qorelanguage/qore/issues/1327/events","html_url":"https://github.com/qorelanguage/qore/issues/1327","id":182266024,"number":1327,"title":"trunc_str() never returns when a unicode char happens to be at the truncated length position","user":{"login":"martin-zemek","id":16538919,"avatar_url":"https://avatars.githubusercontent.com/u/16538919?v=3","gravatar_id":"","url":"https://api.github.com/users/martin-zemek","html_url":"https://github.com/martin-zemek","followers_url":"https://api.github.com/users/martin-zemek/followers","following_url":"https://api.github.com/users/martin-zemek/following{/other_user}","gists_url":"https://api.github.com/users/martin-zemek/gists{/gist_id}","starred_url":"https://api.github.com/users/martin-zemek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin-zemek/subscriptions","organizations_url":"https://api.github.com/users/martin-zemek/orgs","repos_url":"https://api.github.com/users/martin-zemek/repos","events_url":"https://api.github.com/users/martin-zemek/events{/privacy}","received_events_url":"https://api.github.com/users/martin-zemek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qorelanguage/qore/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/qorelanguage/qore/labels/c++","name":"c++","color":"6b0075"},{"url":"https://api.github.com/repos/qorelanguage/qore/labels/fixed","name":"fixed","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"davidnich","id":13432105,"avatar_url":"https://avatars.githubusercontent.com/u/13432105?v=3","gravatar_id":"","url":"https://api.github.com/users/davidnich","html_url":"https://github.com/davidnich","followers_url":"https://api.github.com/users/davidnich/followers","following_url":"https://api.github.com/users/davidnich/following{/other_user}","gists_url":"https://api.github.com/users/davidnich/gists{/gist_id}","starred_url":"https://api.github.com/users/davidnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidnich/subscriptions","organizations_url":"https://api.github.com/users/davidnich/orgs","repos_url":"https://api.github.com/users/davidnich/repos","events_url":"https://api.github.com/users/davidnich/events{/privacy}","received_events_url":"https://api.github.com/users/davidnich/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidnich","id":13432105,"avatar_url":"https://avatars.githubusercontent.com/u/13432105?v=3","gravatar_id":"","url":"https://api.github.com/users/davidnich","html_url":"https://github.com/davidnich","followers_url":"https://api.github.com/users/davidnich/followers","following_url":"https://api.github.com/users/davidnich/following{/other_user}","gists_url":"https://api.github.com/users/davidnich/gists{/gist_id}","starred_url":"https://api.github.com/users/davidnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidnich/subscriptions","organizations_url":"https://api.github.com/users/davidnich/orgs","repos_url":"https://api.github.com/users/davidnich/repos","events_url":"https://api.github.com/users/davidnich/events{/privacy}","received_events_url":"https://api.github.com/users/davidnich/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/qorelanguage/qore/milestones/9","html_url":"https://github.com/qorelanguage/qore/milestones/0.8.12.4","labels_url":"https://api.github.com/repos/qorelanguage/qore/milestones/9/labels","id":2032084,"number":9,"title":"0.8.12.4","description":null,"creator":{"login":"davidnich","id":13432105,"avatar_url":"https://avatars.githubusercontent.com/u/13432105?v=3","gravatar_id":"","url":"https://api.github.com/users/davidnich","html_url":"https://github.com/davidnich","followers_url":"https://api.github.com/users/davidnich/followers","following_url":"https://api.github.com/users/davidnich/following{/other_user}","gists_url":"https://api.github.com/users/davidnich/gists{/gist_id}","starred_url":"https://api.github.com/users/davidnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidnich/subscriptions","organizations_url":"https://api.github.com/users/davidnich/orgs","repos_url":"https://api.github.com/users/davidnich/repos","events_url":"https://api.github.com/users/davidnich/events{/privacy}","received_events_url":"https://api.github.com/users/davidnich/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-09-27T15:08:38Z","updated_at":"2016-10-11T16:58:26Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-10-11T13:37:10Z","updated_at":"2016-10-11T16:58:26Z","closed_at":"2016-10-11T16:58:26Z","body":"`trunc_str(\"asdfäzxcv\", 3)` ... ok ... returns \"asd\"\r\n`trunc_str(\"asdfäzxcv\", 4)` ... **never returns**\r\n`trunc_str(\"asdfäzxcv\", 5)` ... **never returns**\r\n`trunc_str(\"asdfäzxcv\", 6)` ... ok ... returns \"asdfä\"  (5 chars)\r\n`trunc_str(\"asdfäzxcv\", 7)` ... ok ... returns \"asdfäz\"  (6 chars)\r\n"}}
{"actor":{"display_login":"davidnich"}}