{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/1716","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/1716/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/1716/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/1716/events","html_url":"https://github.com/dotnet/coreclr/issues/1716","id":110463057,"number":1716,"title":"[Linux] [CoreClr] String.StartsWith works incorrectly if source string begins with '\\0'","user":{"login":"mviorno","id":14820298,"avatar_url":"https://avatars.githubusercontent.com/u/14820298?v=3","gravatar_id":"","url":"https://api.github.com/users/mviorno","html_url":"https://github.com/mviorno","followers_url":"https://api.github.com/users/mviorno/followers","following_url":"https://api.github.com/users/mviorno/following{/other_user}","gists_url":"https://api.github.com/users/mviorno/gists{/gist_id}","starred_url":"https://api.github.com/users/mviorno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mviorno/subscriptions","organizations_url":"https://api.github.com/users/mviorno/orgs","repos_url":"https://api.github.com/users/mviorno/repos","events_url":"https://api.github.com/users/mviorno/events{/privacy}","received_events_url":"https://api.github.com/users/mviorno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T14:25:11Z","updated_at":"2015-10-08T14:25:11Z","closed_at":null,"body":"The following test is failed when run with linux coreclr runtime (result values evaluated to true):\r\nbool result = \"\\u0000bug\".StartsWith(\"test\");\r\nAssert.AreEqual(false, result);\r\n\r\nSame code works fine with the mono runtime.\r\n\r\nEnvironment:\r\n\r\nuname -a\r\nLinux debianDNX 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux\r\n\r\ndnvm list\r\n\r\nActive Version              Runtime Arch OperatingSystem Alias\r\n------ -------              ------- ---- --------------- -----\r\n       1.0.0-beta6          mono         linux/darwin\r\n  *    1.0.0-rc1-15838      coreclr x64  linux           default\r\n       1.0.0-beta8-15618    mono         linux/darwin\r\n       1.0.0-beta8-15530    mono         linux/darwin\r\n       1.0.0-rc1-15838      mono         linux/darwin\r\n       1.0.0-beta8-15618    coreclr x64  linux\r\n       1.0.0-beta7          mono         linux/darwin\r\n"}}