strconv: fix CanBackquote for invalid UTF-8
Make CanBackquote(invalid UTF-8) return false. Also add two test which show that CanBackquote reports true for strings containing a BOM. Fixes #7572. LGTM=r R=golang-codereviews, bradfitz, r CC=golang-codereviews https://golang.org/cl/111780045
Showing
Please register or sign in to comment