{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/encoding/issues/12","labels_url":"https://api.github.com/repos/whatwg/encoding/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/encoding/issues/12/comments","events_url":"https://api.github.com/repos/whatwg/encoding/issues/12/events","html_url":"https://github.com/whatwg/encoding/issues/12","id":114639878,"number":12,"title":"Signaling EOF in the streaming case is unspecified (or too unclear)","user":{"login":"hsivonen","id":478856,"avatar_url":"https://avatars.githubusercontent.com/u/478856?v=3","gravatar_id":"","url":"https://api.github.com/users/hsivonen","html_url":"https://github.com/hsivonen","followers_url":"https://api.github.com/users/hsivonen/followers","following_url":"https://api.github.com/users/hsivonen/following{/other_user}","gists_url":"https://api.github.com/users/hsivonen/gists{/gist_id}","starred_url":"https://api.github.com/users/hsivonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsivonen/subscriptions","organizations_url":"https://api.github.com/users/hsivonen/orgs","repos_url":"https://api.github.com/users/hsivonen/repos","events_url":"https://api.github.com/users/hsivonen/events{/privacy}","received_events_url":"https://api.github.com/users/hsivonen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T17:10:47Z","updated_at":"2015-11-04T12:49:58Z","closed_at":null,"body":"AFAICT, Gecko's `TextDecoder` doesn't handle EOF at all in the streaming mode. When I look at the spec, it's not clear to me how EOF is supposed to be signaled in the API. By passing `null` as the input to `decode()` maybe?"},"comment":{"url":"https://api.github.com/repos/whatwg/encoding/issues/comments/153711813","html_url":"https://github.com/whatwg/encoding/issues/12#issuecomment-153711813","issue_url":"https://api.github.com/repos/whatwg/encoding/issues/12","id":153711813,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T12:49:58Z","updated_at":"2015-11-04T12:49:58Z","body":"Note that per the specification you signal EOF by a call to `decode()` that does not have the `stream` member set to true. You can still pass in additional input at that point. At what point does the algorithm confuse you?"}}