x/text: ISO8859_1 charmap does not map invalid bytes to replacement character #23706
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.9.1 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux, amd64
What did you do?
https://play.golang.org/p/Z5uLLszLkXm
What did you expect to see?
Byte values which are not valid ISO-8859-1 characters should map to the Unicode replacement character (0xfffd) when decoding.
What did you see instead?
Byte values which are not valid characters map to the Unicode code point with the same value as the original byte.
The text was updated successfully, but these errors were encountered: