{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/17271","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/17271/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/17271/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/17271/events","html_url":"https://github.com/JuliaLang/julia/issues/17271","id":163743019,"number":17271,"title":"bug in printing invalid char","user":{"login":"randy3k","id":1690993,"avatar_url":"https://avatars.githubusercontent.com/u/1690993?v=3","gravatar_id":"","url":"https://api.github.com/users/randy3k","html_url":"https://github.com/randy3k","followers_url":"https://api.github.com/users/randy3k/followers","following_url":"https://api.github.com/users/randy3k/following{/other_user}","gists_url":"https://api.github.com/users/randy3k/gists{/gist_id}","starred_url":"https://api.github.com/users/randy3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randy3k/subscriptions","organizations_url":"https://api.github.com/users/randy3k/orgs","repos_url":"https://api.github.com/users/randy3k/repos","events_url":"https://api.github.com/users/randy3k/events{/privacy}","received_events_url":"https://api.github.com/users/randy3k/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/unicode","name":"unicode","color":"5f4a60"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-04T21:10:17Z","updated_at":"2016-07-06T00:29:47Z","closed_at":null,"body":"`b\"\\x90\"` here is not a valid char. However, since there is no conversion error, I guess it does make sense to print something like `�` instead.\r\n\r\n```julia\r\njulia> String(b\"\\x90\");\r\n\r\njulia> String(b\"\\x90\")\r\n\"Error showing value of type String:\r\nERROR: BoundsError: attempt to access 1-element Array{UInt8,1} at index [0]\r\n in endof(::String) at ./strings/string.jl:40\r\n in done at ./strings/basic.jl:0 [inlined]\r\n in escape_string(::IOContext{Base.Terminals.TTYTerminal}, ::String, ::String) at ./strings/io.jl:137\r\n in print_quoted at ./strings/io.jl:156 [inlined]\r\n in show at ./strings/io.jl:0 [inlined]\r\n in show at ./replutil.jl:0 [inlined]\r\n in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol(\"text/plain\")}, ::String) at ./REPL.jl:114\r\n in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::String) at ./REPL.jl:117\r\n in display(::String) at ./multimedia.jl:143\r\n in print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:134\r\n in print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:121\r\n in (::Base.REPL.##18#19{Bool,Base.REPL.##29#38{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:631\r\n in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1570\r\n in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:882\r\n in run_repl(::Base.REPL.LineEditREPL, ::Base.##598#599) at ./REPL.jl:167\r\n in _start() at ./client.jl:364\r\n```\r\n\r\nby the way, it is julia 0.5-dev"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/230641383","html_url":"https://github.com/JuliaLang/julia/issues/17271#issuecomment-230641383","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/17271","id":230641383,"user":{"login":"StefanKarpinski","id":153596,"avatar_url":"https://avatars.githubusercontent.com/u/153596?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanKarpinski","html_url":"https://github.com/StefanKarpinski","followers_url":"https://api.github.com/users/StefanKarpinski/followers","following_url":"https://api.github.com/users/StefanKarpinski/following{/other_user}","gists_url":"https://api.github.com/users/StefanKarpinski/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanKarpinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanKarpinski/subscriptions","organizations_url":"https://api.github.com/users/StefanKarpinski/orgs","repos_url":"https://api.github.com/users/StefanKarpinski/repos","events_url":"https://api.github.com/users/StefanKarpinski/events{/privacy}","received_events_url":"https://api.github.com/users/StefanKarpinski/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T00:29:47Z","updated_at":"2016-07-06T00:29:47Z","body":"Whether `String` objects can hold arbitrary data or not is in a bit of a limbo state since the changes in #16107 have ended up spanning the 0.5 and 0.6 releases, so for now @nalimilan's fix is the way to go."}}
{"actor":{"display_login":"StefanKarpinski"}}