{"action":"created","issue":{"url":"https://api.github.com/repos/edenhill/kafkacat/issues/140","repository_url":"https://api.github.com/repos/edenhill/kafkacat","labels_url":"https://api.github.com/repos/edenhill/kafkacat/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/edenhill/kafkacat/issues/140/comments","events_url":"https://api.github.com/repos/edenhill/kafkacat/issues/140/events","html_url":"https://github.com/edenhill/kafkacat/issues/140","id":323987341,"node_id":"MDU6SXNzdWUzMjM5ODczNDE=","number":140,"title":"Multi-byte -D delimiters are buggy","user":{"login":"edenhill","id":524990,"node_id":"MDQ6VXNlcjUyNDk5MA==","avatar_url":"https://avatars0.githubusercontent.com/u/524990?v=4","gravatar_id":"","url":"https://api.github.com/users/edenhill","html_url":"https://github.com/edenhill","followers_url":"https://api.github.com/users/edenhill/followers","following_url":"https://api.github.com/users/edenhill/following{/other_user}","gists_url":"https://api.github.com/users/edenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/edenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenhill/subscriptions","organizations_url":"https://api.github.com/users/edenhill/orgs","repos_url":"https://api.github.com/users/edenhill/repos","events_url":"https://api.github.com/users/edenhill/events{/privacy}","received_events_url":"https://api.github.com/users/edenhill/received_events","type":"User","site_admin":false},"labels":[{"id":89135038,"node_id":"MDU6TGFiZWw4OTEzNTAzOA==","url":"https://api.github.com/repos/edenhill/kafkacat/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-17T11:44:51Z","updated_at":"2019-01-04T11:46:41Z","closed_at":null,"author_association":"OWNER","body":"kafkacat assumes the -D delimiter to be a single, but accepts a multi-byte delimiter, causing only the first byte to be shaved off from the input.\r\n"},"comment":{"url":"https://api.github.com/repos/edenhill/kafkacat/issues/comments/451423218","html_url":"https://github.com/edenhill/kafkacat/issues/140#issuecomment-451423218","issue_url":"https://api.github.com/repos/edenhill/kafkacat/issues/140","id":451423218,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTQyMzIxOA==","user":{"login":"rmoff","id":3671582,"node_id":"MDQ6VXNlcjM2NzE1ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/3671582?v=4","gravatar_id":"","url":"https://api.github.com/users/rmoff","html_url":"https://github.com/rmoff","followers_url":"https://api.github.com/users/rmoff/followers","following_url":"https://api.github.com/users/rmoff/following{/other_user}","gists_url":"https://api.github.com/users/rmoff/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoff/subscriptions","organizations_url":"https://api.github.com/users/rmoff/orgs","repos_url":"https://api.github.com/users/rmoff/repos","events_url":"https://api.github.com/users/rmoff/events{/privacy}","received_events_url":"https://api.github.com/users/rmoff/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T11:46:41Z","updated_at":"2019-01-04T11:46:41Z","author_association":"CONTRIBUTOR","body":"@edenhill does this impact `-K` too? IIRC we discussed it but I can't find the issue, only this one. In this example `:` works fine but `±` does not\r\n\r\nInput: \r\n\r\n```\r\n[~/g/d/connect-jdbc] Robin@asgard02.moffatt.me  (connect-jdbc|…)\r\n$ docker run --rm -it --network connect-jdbc_default confluentinc/cp-kafkacat \\\r\n      kafkacat -b kafka:29092 -t kc-test -P\r\nno key\r\n^C⏎                                                                                                                                                                                                          [~/g/d/connect-jdbc] Robin@asgard02.moffatt.me  (connect-jdbc|…)\r\n$ docker run --rm -it --network connect-jdbc_default confluentinc/cp-kafkacat \\\r\n      kafkacat -b kafka:29092 -t kc-test -P -K:\r\n1:key is 1, separator is :\r\n[~/g/d/connect-jdbc] Robin@asgard02.moffatt.me  (connect-jdbc|…)\r\n$ docker run --rm -it --network connect-jdbc_default confluentinc/cp-kafkacat \\\r\n      kafkacat -b kafka:29092 -t kc-test -P -K±\r\n1±key is 1, separator is ±\r\n```\r\n\r\nOutput:\r\n```\r\n$ docker run --rm -it --network connect-jdbc_default confluentinc/cp-kafkacat \\\r\n    kafkacat -b kafka:29092 -t kc-test -C -f '\\nKey (%K bytes): %k\\t\\nValue (%S bytes): %s\\nTimestamp: %T\\tPartition: %p\\tOffset: %o\\n--\\n'\r\n\r\nKey (-1 bytes):\r\nValue (6 bytes): no key\r\nTimestamp: 1546602214489        Partition: 0    Offset: 0\r\n--\r\n% Reached end of topic kc-test [0] at offset 1\r\n\r\nKey (1 bytes): 1\r\nValue (24 bytes): key is 1, separator is :\r\nTimestamp: 1546602254776        Partition: 0    Offset: 1\r\n--\r\n% Reached end of topic kc-test [0] at offset 2\r\n\r\nKey (1 bytes): 1\r\nValue (26 bytes): �key is 1, separator is ±\r\nTimestamp: 1546602271123        Partition: 0    Offset: 2\r\n--\r\n% Reached end of topic kc-test [0] at offset 3\r\n\r\n```"}}
{"actor":{"display_login":"rmoff"}}