{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/7811","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/7811/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/7811/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/7811/events","html_url":"https://github.com/JuliaLang/julia/issues/7811","id":39322487,"number":7811,"title":"SubString{UTF8String} and UTF8String have different slicing behaviour","user":{"login":"ivarne","id":131616,"avatar_url":"https://avatars.githubusercontent.com/u/131616?v=3","gravatar_id":"","url":"https://api.github.com/users/ivarne","html_url":"https://github.com/ivarne","followers_url":"https://api.github.com/users/ivarne/followers","following_url":"https://api.github.com/users/ivarne/following{/other_user}","gists_url":"https://api.github.com/users/ivarne/gists{/gist_id}","starred_url":"https://api.github.com/users/ivarne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivarne/subscriptions","organizations_url":"https://api.github.com/users/ivarne/orgs","repos_url":"https://api.github.com/users/ivarne/repos","events_url":"https://api.github.com/users/ivarne/events{/privacy}","received_events_url":"https://api.github.com/users/ivarne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/breaking","name":"breaking","color":"800000"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/decision","name":"decision","color":"F08000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/JuliaLang/julia/milestones/11","html_url":"https://github.com/JuliaLang/julia/milestones/0.4.0","labels_url":"https://api.github.com/repos/JuliaLang/julia/milestones/11/labels","id":748886,"number":11,"title":"0.4.0","description":"For tracking release-defining items for 0.4: important new features, breaking changes, and blocking bugs.\r\n\r\nAfter a brief period for deciding scope, adding issues to this milestone is not allowed. Once the items in this milestone are done, 0.4 will enter its stabilizing period and a release candidate can be made soon after.","creator":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":49,"state":"open","created_at":"2014-08-10T18:13:46Z","updated_at":"2015-06-10T18:34:19Z","due_on":"2015-06-20T18:30:00Z","closed_at":null},"comments":10,"created_at":"2014-08-01T19:58:50Z","updated_at":"2015-06-10T18:34:19Z","closed_at":"2015-06-10T18:34:19Z","body":"Found this on [stackoverflow](http://stackoverflow.com/q/25082347/112019)\r\n\r\n```jlcon\r\njulia> a = \"æøå\"\r\n\"æøå\"\r\n\r\njulia> a[2:end]\r\n\"øå\"\r\n\r\njulia> b = SubString(a,1)\r\n\"æøå\"\r\n\r\njulia> b[2:end]\r\nERROR: invalid SubString indexes\r\n in getindex at ./string.jl:657\r\n```\r\nI'm not sure what the correct behaviour should be, but having them different seems wrong. Some relevant discussion in https://github.com/JuliaLang/julia/issues/5446"}}