{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2784","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2784/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2784/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2784/events","html_url":"https://github.com/jruby/jruby/issues/2784","id":65310202,"number":2784,"title":"rindex() fails on strings read from binary files","user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/core","name":"core","color":"02e10c"},{"url":"https://api.github.com/repos/jruby/jruby/labels/encoding","name":"encoding","color":"671716"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%209000","name":"JRuby 9000","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/32","html_url":"https://github.com/jruby/jruby/milestones/9.0.0.0.pre2","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/32/labels","id":944306,"number":32,"title":"9.0.0.0.pre2","description":"","creator":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":57,"state":"open","created_at":"2015-01-20T21:46:46Z","updated_at":"2015-04-02T18:57:41Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-30T21:52:45Z","updated_at":"2015-04-02T20:23:00Z","closed_at":"2015-04-02T18:57:24Z","body":"Fails on jruby-head, works on jruby-1.7.19\r\n\r\n\r\n```ruby\r\nIO.write(\"data\", \":/c\")\r\n\r\ndata = File.open(\"data\", \"rb\").readlines.first.split(':').last     # => \"/c\"\r\n\r\nresult = data.rindex(\"c\")   # => should be 1, but is nil on jruby-head\r\n\r\nfail \"expected 1, got: #{result.inspect}\" unless result == 1\r\n```\r\n\r\nExpected: no failure\r\nActual: failure on jruby-head (because `rindex` returns nil)\r\n\r\nJRuby: jruby 9.0.0.0-SNAPSHOT (2.2.1) 2015-03-30 8d7c1b1 OpenJDK 64-Bit Server VM 24.75-b04 on 1.7.0_75-b13 +jit [linux-amd64]"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/89033723","html_url":"https://github.com/jruby/jruby/issues/2784#issuecomment-89033723","issue_url":"https://api.github.com/repos/jruby/jruby/issues/2784","id":89033723,"user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T20:23:00Z","updated_at":"2015-04-02T20:23:00Z","body":"Sure - will do. And thanks so much @headius for all your work!"}}