{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/4587","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/4587/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/4587/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/4587/events","html_url":"https://github.com/dotnet/corefx/issues/4587","id":117900788,"number":4587,"title":"String.EndsWith on CoreCLR \\ Linux does not work correctly for line feeds","user":{"login":"pranavkm","id":174281,"avatar_url":"https://avatars.githubusercontent.com/u/174281?v=3","gravatar_id":"","url":"https://api.github.com/users/pranavkm","html_url":"https://github.com/pranavkm","followers_url":"https://api.github.com/users/pranavkm/followers","following_url":"https://api.github.com/users/pranavkm/following{/other_user}","gists_url":"https://api.github.com/users/pranavkm/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkm/subscriptions","organizations_url":"https://api.github.com/users/pranavkm/orgs","repos_url":"https://api.github.com/users/pranavkm/repos","events_url":"https://api.github.com/users/pranavkm/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.Globalization","name":"System.Globalization","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"tarekgh","id":10833894,"avatar_url":"https://avatars.githubusercontent.com/u/10833894?v=3","gravatar_id":"","url":"https://api.github.com/users/tarekgh","html_url":"https://github.com/tarekgh","followers_url":"https://api.github.com/users/tarekgh/followers","following_url":"https://api.github.com/users/tarekgh/following{/other_user}","gists_url":"https://api.github.com/users/tarekgh/gists{/gist_id}","starred_url":"https://api.github.com/users/tarekgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarekgh/subscriptions","organizations_url":"https://api.github.com/users/tarekgh/orgs","repos_url":"https://api.github.com/users/tarekgh/repos","events_url":"https://api.github.com/users/tarekgh/events{/privacy}","received_events_url":"https://api.github.com/users/tarekgh/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/8","html_url":"https://github.com/dotnet/corefx/milestones/1.0.0-rtm","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/8/labels","id":1719259,"number":8,"title":"1.0.0-rtm","description":"2016 https://github.com/aspnet/Home/wiki/Roadmap","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":82,"closed_issues":88,"state":"open","created_at":"2016-04-19T20:53:30Z","updated_at":"2016-05-13T16:07:22Z","due_on":"2016-06-30T07:00:00Z","closed_at":null},"comments":8,"created_at":"2015-11-19T20:27:36Z","updated_at":"2016-05-13T16:07:22Z","closed_at":"2016-05-13T16:07:22Z","body":"Here's the repro example:\r\n\r\n```C#\r\nusing System;\r\n\r\npublic class Program\r\n{\r\n    public static void Main (string[] args)\r\n    {\r\n        var text = \"Hello\\r\\n\";\r\n        \r\n        Console.WriteLine(text.EndsWith(\"\\n\"));\r\n        Console.WriteLine(text.LastIndexOf('\\n') == text.Length -  1);\r\n    }\r\n}\r\n```\r\n**Expected**: True True\r\n**Actual**: False True\r\n\r\nI used DNX v1.0.0-rc2-16216 to run this application. The version of `System.Console` I used was `4.0.0-beta-23516`. Running it with DNX Mono or running this on Windows produces the right results."}}