fmt.Scan: fix %c in the case where the input does not implement ReadRune itself.
While we're at it, clean up and test the code to guarantee we see every byte when the text is erroneous UTF-8. Fixes #866. R=rsc CC=golang-dev https://golang.org/cl/1712042
Showing
Please
register
or
sign in
to comment