Descriptionstrconv: 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 issue 7572.
Patch Set 1 #Patch Set 2 : diff -r fbd798b1842c https://code.google.com/p/go/ #Patch Set 3 : diff -r fbd798b1842c https://code.google.com/p/go/ #Patch Set 4 : diff -r fbd798b1842c https://code.google.com/p/go/ #
Total comments: 1
Patch Set 5 : diff -r 991519645363 https://code.google.com/p/go/ #Patch Set 6 : diff -r c0a68bcf19ae https://code.google.com/p/go/ #MessagesTotal messages: 13
|