Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: Unmarshal should reject malformed UTF-8 #4783
What is the expected output? json.Unmarshal should return json.InvalidUTF8Error for input streams containing non-Unicode runes What do you see instead? Non-Unicode runes replaced by surrogates Which version are you using? (run 'go version') go version devel +439cb8bad388 Wed Feb 06 17:18:53 2013 -0800 linux/amd64 Please provide any additional information below. This program ought to return an error, though it replaces the input stream with Unicode surrogates. Maybe Unmarshal deserves a parameter or an UnmarshalWithError - method? http://play.golang.org/p/r2AWWqdSNY
This issue was closed.