{"action":"created","issue":{"url":"https://api.github.com/repos/eggheads/eggdrop/issues/4","repository_url":"https://api.github.com/repos/eggheads/eggdrop","labels_url":"https://api.github.com/repos/eggheads/eggdrop/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/eggheads/eggdrop/issues/4/comments","events_url":"https://api.github.com/repos/eggheads/eggdrop/issues/4/events","html_url":"https://github.com/eggheads/eggdrop/issues/4","id":111284817,"number":4,"title":"unicode (utf8 actually) characters not handled correctly","user":{"login":"thommey","id":614832,"avatar_url":"https://avatars.githubusercontent.com/u/614832?v=3","gravatar_id":"","url":"https://api.github.com/users/thommey","html_url":"https://github.com/thommey","followers_url":"https://api.github.com/users/thommey/followers","following_url":"https://api.github.com/users/thommey/following{/other_user}","gists_url":"https://api.github.com/users/thommey/gists{/gist_id}","starred_url":"https://api.github.com/users/thommey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thommey/subscriptions","organizations_url":"https://api.github.com/users/thommey/orgs","repos_url":"https://api.github.com/users/thommey/repos","events_url":"https://api.github.com/users/thommey/events{/privacy}","received_events_url":"https://api.github.com/users/thommey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eggheads/eggdrop/labels/pri:%20blocker","name":"pri: blocker","color":"f7c6c7"},{"url":"https://api.github.com/repos/eggheads/eggdrop/labels/type:%20bug","name":"type: bug","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"thommey","id":614832,"avatar_url":"https://avatars.githubusercontent.com/u/614832?v=3","gravatar_id":"","url":"https://api.github.com/users/thommey","html_url":"https://github.com/thommey","followers_url":"https://api.github.com/users/thommey/followers","following_url":"https://api.github.com/users/thommey/following{/other_user}","gists_url":"https://api.github.com/users/thommey/gists{/gist_id}","starred_url":"https://api.github.com/users/thommey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thommey/subscriptions","organizations_url":"https://api.github.com/users/thommey/orgs","repos_url":"https://api.github.com/users/thommey/repos","events_url":"https://api.github.com/users/thommey/events{/privacy}","received_events_url":"https://api.github.com/users/thommey/received_events","type":"User","site_admin":false},"assignees":[{"login":"thommey","id":614832,"avatar_url":"https://avatars.githubusercontent.com/u/614832?v=3","gravatar_id":"","url":"https://api.github.com/users/thommey","html_url":"https://github.com/thommey","followers_url":"https://api.github.com/users/thommey/followers","following_url":"https://api.github.com/users/thommey/following{/other_user}","gists_url":"https://api.github.com/users/thommey/gists{/gist_id}","starred_url":"https://api.github.com/users/thommey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thommey/subscriptions","organizations_url":"https://api.github.com/users/thommey/orgs","repos_url":"https://api.github.com/users/thommey/repos","events_url":"https://api.github.com/users/thommey/events{/privacy}","received_events_url":"https://api.github.com/users/thommey/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/eggheads/eggdrop/milestones/1","html_url":"https://github.com/eggheads/eggdrop/milestones/v1.8.1","labels_url":"https://api.github.com/repos/eggheads/eggdrop/milestones/1/labels","id":1369633,"number":1,"title":"v1.8.1","description":"Features/fixes to be closed prior to 1.8.1 roll-out","creator":{"login":"vanosg","id":2440369,"avatar_url":"https://avatars.githubusercontent.com/u/2440369?v=3","gravatar_id":"","url":"https://api.github.com/users/vanosg","html_url":"https://github.com/vanosg","followers_url":"https://api.github.com/users/vanosg/followers","following_url":"https://api.github.com/users/vanosg/following{/other_user}","gists_url":"https://api.github.com/users/vanosg/gists{/gist_id}","starred_url":"https://api.github.com/users/vanosg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanosg/subscriptions","organizations_url":"https://api.github.com/users/vanosg/orgs","repos_url":"https://api.github.com/users/vanosg/repos","events_url":"https://api.github.com/users/vanosg/events{/privacy}","received_events_url":"https://api.github.com/users/vanosg/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-10-22T04:22:41Z","updated_at":"2016-07-09T03:42:28Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2010-02-02T23:10:57Z","updated_at":"2016-08-27T02:46:19Z","closed_at":null,"body":"Trac | Data\n---: | :---\nTicket | 4\nReported by | Arkadiusz Miskiewicz\nStatus | assigned\nComponent | Core\nPriority | blocker\nMilestone | 1.8.0\nKeywords | utf unicode\nVersion | 1.8.0 CVS\n\nMy setup:\n\neggdrop 1.6.17\ntcl 8.5a6\nLinux 2.6 with latest version of libraries and all stuff\nfreenode network\nirssi client\n\nTesting is simple, tcl script that echoes data back to channel:\nbind pub - \"utf\" pub_proc\nproc pub_proc { nick idx handle channel szoveg } {\n        putmsg $channel \"$szoveg\"\n}\n\n\nNow on original 1.6.17 when entering utf8 characters this happens:\n21:39 < arekm8> utf ó&#261;&#322;&#324;&#347;\n21:39 < utftest> &#65533;EBD[\n(some crap is echoed)\n\nAfter patching src/tcl.c utf_convert() with:\n- byteptr = (char *) Tcl_GetByteArrayFromObj(objv[i], &len);\n+ byteptr = (char *) Tcl_GetStringFromObj(objv[i], &len);\n\nI get:\n21:57 < arekm8> utf ó&#261;&#322;&#324;&#347;\n21:57 < utftest> ó&#261;&#322;&#324;&#347;\n\nIt works - proper characters are echoed back.\n\nNo idea why ByteArray is used in utf_convert() so I'm not sure if the fix is \ncorrect. Is it?"},"comment":{"url":"https://api.github.com/repos/eggheads/eggdrop/issues/comments/242891142","html_url":"https://github.com/eggheads/eggdrop/issues/4#issuecomment-242891142","issue_url":"https://api.github.com/repos/eggheads/eggdrop/issues/4","id":242891142,"user":{"login":"fred0r","id":2220111,"avatar_url":"https://avatars.githubusercontent.com/u/2220111?v=3","gravatar_id":"","url":"https://api.github.com/users/fred0r","html_url":"https://github.com/fred0r","followers_url":"https://api.github.com/users/fred0r/followers","following_url":"https://api.github.com/users/fred0r/following{/other_user}","gists_url":"https://api.github.com/users/fred0r/gists{/gist_id}","starred_url":"https://api.github.com/users/fred0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fred0r/subscriptions","organizations_url":"https://api.github.com/users/fred0r/orgs","repos_url":"https://api.github.com/users/fred0r/repos","events_url":"https://api.github.com/users/fred0r/events{/privacy}","received_events_url":"https://api.github.com/users/fred0r/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T02:46:19Z","updated_at":"2016-08-27T02:46:19Z","body":"Just checked out and still needed to edit tcl.c to get utf-8 output.\r\nPlease default to utf-8 - its 2016."}}
{"actor":{"display_login":"fred0r"}}