{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3852","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3852/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3852/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3852/events","html_url":"https://github.com/jruby/jruby/issues/3852","id":153226880,"number":3852,"title":"jruby tests are failing for logstash for encoding UTF-8","user":{"login":"meghalidhoble","id":14156599,"avatar_url":"https://avatars.githubusercontent.com/u/14156599?v=3","gravatar_id":"","url":"https://api.github.com/users/meghalidhoble","html_url":"https://github.com/meghalidhoble","followers_url":"https://api.github.com/users/meghalidhoble/followers","following_url":"https://api.github.com/users/meghalidhoble/following{/other_user}","gists_url":"https://api.github.com/users/meghalidhoble/gists{/gist_id}","starred_url":"https://api.github.com/users/meghalidhoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meghalidhoble/subscriptions","organizations_url":"https://api.github.com/users/meghalidhoble/orgs","repos_url":"https://api.github.com/users/meghalidhoble/repos","events_url":"https://api.github.com/users/meghalidhoble/events{/privacy}","received_events_url":"https://api.github.com/users/meghalidhoble/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/JRuby%201.7.x","name":"JRuby 1.7.x","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/49","html_url":"https://github.com/jruby/jruby/milestones/JRuby%201.7.26","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/49/labels","id":1527212,"number":49,"title":"JRuby 1.7.26","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":17,"closed_issues":0,"state":"open","created_at":"2016-01-20T20:34:31Z","updated_at":"2016-05-05T14:28:59Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-05-05T13:01:08Z","updated_at":"2016-05-12T11:58:32Z","closed_at":null,"body":"Jruby Version : jruby 1.7.25 \r\nOS : Rhel7.2 \r\n\r\nI am trying to run tests for logstash code which is written in jruby. The tests are run using the command \r\n```\r\nrake test:core\r\n```\r\n\r\nThe error I am seeing is something like below:\r\n```\r\n Failure/Error: expect(subject.sprintf(\"%{message}\").encoding).to eq(Encoding::UTF_8)\r\n\r\n       expected: #<Encoding:UTF-8>\r\n            got: #<Encoding:US-ASCII>\r\n\r\n       (compared using ==)\r\n       Diff:\r\n       @@ -1,2 +1,2 @@\r\n       -#<Encoding:UTF-8>\r\n       +#<Encoding:US-ASCII>\r\n```\r\nDoes jruby handles encoding in different way? Is there anything that I am missing out here? \r\nAny pointers would really help.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/218736248","html_url":"https://github.com/jruby/jruby/issues/3852#issuecomment-218736248","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3852","id":218736248,"user":{"login":"meghalidhoble","id":14156599,"avatar_url":"https://avatars.githubusercontent.com/u/14156599?v=3","gravatar_id":"","url":"https://api.github.com/users/meghalidhoble","html_url":"https://github.com/meghalidhoble","followers_url":"https://api.github.com/users/meghalidhoble/followers","following_url":"https://api.github.com/users/meghalidhoble/following{/other_user}","gists_url":"https://api.github.com/users/meghalidhoble/gists{/gist_id}","starred_url":"https://api.github.com/users/meghalidhoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meghalidhoble/subscriptions","organizations_url":"https://api.github.com/users/meghalidhoble/orgs","repos_url":"https://api.github.com/users/meghalidhoble/repos","events_url":"https://api.github.com/users/meghalidhoble/events{/privacy}","received_events_url":"https://api.github.com/users/meghalidhoble/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T11:58:31Z","updated_at":"2016-05-12T11:58:31Z","body":"Hi @headius , that's right I couldn't confirm due to the rake issue.\r\nToday when I tried my build with Jruby 1.7.25 (older version) and installed it using RVM it worked fine for me and I am not getting the issue any more now.  Please note that Jruby version 9.1.0.0 was giving me different issues.\r\nI will keep watching the build for consistency. Thanks for all your help.\r\n-Meghali"}}