{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11744","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11744/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11744/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11744/events","html_url":"https://github.com/JuliaLang/julia/issues/11744","id":89197573,"number":11744,"title":"Invalid UTF8 strings can be created but not displayed on the repl?","user":{"login":"malmaud","id":987837,"avatar_url":"https://avatars.githubusercontent.com/u/987837?v=3","gravatar_id":"","url":"https://api.github.com/users/malmaud","html_url":"https://github.com/malmaud","followers_url":"https://api.github.com/users/malmaud/followers","following_url":"https://api.github.com/users/malmaud/following{/other_user}","gists_url":"https://api.github.com/users/malmaud/gists{/gist_id}","starred_url":"https://api.github.com/users/malmaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malmaud/subscriptions","organizations_url":"https://api.github.com/users/malmaud/orgs","repos_url":"https://api.github.com/users/malmaud/repos","events_url":"https://api.github.com/users/malmaud/events{/privacy}","received_events_url":"https://api.github.com/users/malmaud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-18T04:42:59Z","updated_at":"2015-06-18T08:44:12Z","closed_at":"2015-06-18T04:47:23Z","body":"Puzzled by this:\r\n\r\n```julia\r\nb=IOBuffer()\r\nserialize(b, SharedArray(Float64, (10,)))\r\nseek(b,0)\r\ns=readall(b);  # Works\r\ns  # Error\r\n```\r\n\r\n```\r\nERROR: invalid character index\r\n in next at ./utf8.jl:69\r\n in print_escaped at string.jl:880\r\n in print_quoted at string.jl:897\r\n in show at string.jl:74\r\n in anonymous at show.jl:1254\r\n in with_output_limit at ./show.jl:1231\r\n in showlimited at show.jl:1253\r\n in writemime at replutil.jl:4\r\n in display at REPL.jl:113\r\n in display at REPL.jl:116\r\n in display at multimedia.jl:151\r\n in print_response at REPL.jl:133\r\n in print_response at REPL.jl:120\r\n in anonymous at REPL.jl:600\r\n in run_interface at ./LineEdit.jl:1566\r\n in run_frontend at ./REPL.jl:841\r\n in run_repl at ./REPL.jl:165\r\n in _start at ./client.jl:446\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/113078596","html_url":"https://github.com/JuliaLang/julia/issues/11744#issuecomment-113078596","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11744","id":113078596,"user":{"login":"nalimilan","id":1120448,"avatar_url":"https://avatars.githubusercontent.com/u/1120448?v=3","gravatar_id":"","url":"https://api.github.com/users/nalimilan","html_url":"https://github.com/nalimilan","followers_url":"https://api.github.com/users/nalimilan/followers","following_url":"https://api.github.com/users/nalimilan/following{/other_user}","gists_url":"https://api.github.com/users/nalimilan/gists{/gist_id}","starred_url":"https://api.github.com/users/nalimilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalimilan/subscriptions","organizations_url":"https://api.github.com/users/nalimilan/orgs","repos_url":"https://api.github.com/users/nalimilan/repos","events_url":"https://api.github.com/users/nalimilan/events{/privacy}","received_events_url":"https://api.github.com/users/nalimilan/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T08:44:12Z","updated_at":"2015-06-18T08:44:12Z","body":"@JeffBezanson That comment sounds in opposition with what you said in https://github.com/JuliaLang/julia/issues/1792. I agree that the current situation has some consistency, but as you argued there ensuring that strings are valid in some future version would allow for performance improvements and prevents bugs."}}