Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1684)

Issue 111780045: code review 111780045: strconv: fix CanBackquote for invalud UTF-8 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by volker.dobler
Modified:
9 years, 9 months ago
Reviewers:
r, gobot, rsc
CC:
golang-codereviews, bradfitz, r
Visibility:
Public.

Description

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 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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M src/pkg/strconv/quote.go View 1 2 3 4 5 1 chunk +10 lines, -3 lines 0 comments Download
M src/pkg/strconv/quote_test.go View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13
volker.dobler
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
9 years, 10 months ago (2014-07-02 12:49:33 UTC) #1
bradfitz
R=r Btw, invalid spelling of invalid in subject of CL. On Wed, Jul 2, 2014 ...
9 years, 10 months ago (2014-07-02 13:50:16 UTC) #2
r
https://codereview.appspot.com/111780045/diff/60001/src/pkg/strconv/quote.go File src/pkg/strconv/quote.go (right): https://codereview.appspot.com/111780045/diff/60001/src/pkg/strconv/quote.go#newcode147 src/pkg/strconv/quote.go:147: for i < len(s) { we might need a ...
9 years, 10 months ago (2014-07-07 19:49:29 UTC) #3
r
s/but we can ignore space// (i had a different snippet before) On Mon, Jul 7, ...
9 years, 10 months ago (2014-07-07 19:50:21 UTC) #4
volker.dobler
On 2014/07/07 19:49:29, r wrote: > https://codereview.appspot.com/111780045/diff/60001/src/pkg/strconv/quote.go > File src/pkg/strconv/quote.go (right): > > https://codereview.appspot.com/111780045/diff/60001/src/pkg/strconv/quote.go#newcode147 > ...
9 years, 10 months ago (2014-07-08 09:11:38 UTC) #5
r
Since the prettier code isn't much slower, and is faster when things get messy, let's ...
9 years, 9 months ago (2014-07-10 18:04:59 UTC) #6
volker.dobler
PTAL I think the behaviour on BOMs is wrong. Leaving that for an other CL.
9 years, 9 months ago (2014-07-11 14:04:22 UTC) #7
r
LGTM
9 years, 9 months ago (2014-07-15 02:46:26 UTC) #8
r
*** Submitted as https://code.google.com/p/go/source/detail?r=475cdb6f8369 *** strconv: fix CanBackquote for invalid UTF-8 Make CanBackquote(invalid UTF-8) return ...
9 years, 9 months ago (2014-07-15 02:49:28 UTC) #9
gobot
This CL appears to have broken the netbsd-386-minux builder. See http://build.golang.org/log/6440ed96ba6f6e994de1adfd70ac14806de2c84e
9 years, 9 months ago (2014-07-15 02:59:31 UTC) #10
rsc
FWIW, I agree that the behavior on BOMs is wrong.
9 years, 9 months ago (2014-07-15 03:03:50 UTC) #11
r
And another CL is promised, no? On Mon, Jul 14, 2014 at 8:03 PM, <rsc@golang.org> ...
9 years, 9 months ago (2014-07-15 04:36:51 UTC) #12
volker.dobler
9 years, 9 months ago (2014-07-15 04:49:30 UTC) #13
On Tue, Jul 15, 2014 at 6:36 AM, Rob Pike <r@golang.org> wrote:

> And another CL is promised, no?
>

Yes. In the next 6 hours.


> On Mon, Jul 14, 2014 at 8:03 PM,  <rsc@golang.org> wrote:
> > FWIW, I agree that the behavior on BOMs is wrong.
> >
> >
> > https://codereview.appspot.com/111780045/
>



-- 
Dr. Volker Dobler
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b