{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/10958","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/10958/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/10958/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/10958/events","html_url":"https://github.com/JuliaLang/julia/issues/10958","id":70429380,"number":10958,"title":"incorrect handling of NUL characters in strings","user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/decision","name":"decision","color":"F08000"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/unicode","name":"unicode","color":"5f4a60"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-23T14:40:16Z","updated_at":"2015-04-23T18:39:27Z","closed_at":null,"body":"This gets a BoundsError: attempt to access 1-element Array{Char,1}\r\nin convert at utf32.jl:37\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/95680189","html_url":"https://github.com/JuliaLang/julia/issues/10958#issuecomment-95680189","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/10958","id":95680189,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T18:39:27Z","updated_at":"2015-04-23T18:39:27Z","body":"@ScottPJones, the point is that you think you are passing `foo\\0bar` to the C function, but the C function thinks you are passing `\"foo\"`.  i.e. silent truncation is occuring.  Really, we should throw an exception in such a case.\r\n\r\nWhat is the use-case for strings with embedded NUL bytes?   (Most POSIX and ISO C functions don't allow them.)"}}