{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/22685","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/22685/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/22685/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/22685/events","html_url":"https://github.com/rust-lang/rust/issues/22685","id":58517230,"number":22685,"title":"BufRead read_line should give error on EOF","user":{"login":"tfogal","id":60981,"avatar_url":"https://avatars.githubusercontent.com/u/60981?v=3","gravatar_id":"","url":"https://api.github.com/users/tfogal","html_url":"https://github.com/tfogal","followers_url":"https://api.github.com/users/tfogal/followers","following_url":"https://api.github.com/users/tfogal/following{/other_user}","gists_url":"https://api.github.com/users/tfogal/gists{/gist_id}","starred_url":"https://api.github.com/users/tfogal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfogal/subscriptions","organizations_url":"https://api.github.com/users/tfogal/orgs","repos_url":"https://api.github.com/users/tfogal/repos","events_url":"https://api.github.com/users/tfogal/events{/privacy}","received_events_url":"https://api.github.com/users/tfogal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-22T20:32:38Z","updated_at":"2015-02-22T20:32:38Z","closed_at":null,"body":"Currently it is just returning a 0-length buffer, but this is unintuitive; one expects IO functions to give back EOF when they are finished.\r\n\r\nAFAICT (line 833 of mod.rs?), the current implementation will pop off the newline.  This is nice (IMHO)! However, without EOF, it means that the user of the method cannot differentiate between end of file and a blank line in the file (or whatever they're reading from)."}}