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

Issue 78120043: code review 78120043: text/scanner: handle non-io.EOF errors (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by ruiu
Modified:
10 years, 12 months ago
Reviewers:
gri
CC:
golang-codereviews, bradfitz, gri
Visibility:
Public.

Description

text/scanner: handle non-io.EOF errors Currently Scan ignores an error returned from source if the number of bytes source has read is 0. Fixes issue 7594.

Patch Set 1 #

Patch Set 2 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Patch Set 3 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Patch Set 4 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Patch Set 5 : diff -r 2b85dda01af0 https://code.google.com/p/go #

Total comments: 18

Patch Set 6 : diff -r 9cd3a4758b94 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M src/pkg/text/scanner/scanner.go View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/text/scanner/scanner_test.go View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 6
ruiu
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 12 months ago (2014-03-20 06:42:52 UTC) #1
bradfitz
R=gri On Wed, Mar 19, 2014 at 11:42 PM, <ruiu@google.com> wrote: > Reviewers: golang-codereviews, > ...
10 years, 12 months ago (2014-03-20 16:41:12 UTC) #2
gri
The fix looks good to me. Thanks. Some nitpicks in the test. https://codereview.appspot.com/78120043/diff/70001/src/pkg/text/scanner/scanner_test.go File src/pkg/text/scanner/scanner_test.go ...
10 years, 12 months ago (2014-03-21 22:51:25 UTC) #3
ruiu
Thank you for reviewing. PTAL. https://codereview.appspot.com/78120043/diff/70001/src/pkg/text/scanner/scanner_test.go File src/pkg/text/scanner/scanner_test.go (right): https://codereview.appspot.com/78120043/diff/70001/src/pkg/text/scanner/scanner_test.go#newcode466 src/pkg/text/scanner/scanner_test.go:466: // An ErrorReader returns ...
10 years, 12 months ago (2014-03-21 23:59:52 UTC) #4
gri
LGTM. Thanks.
10 years, 12 months ago (2014-03-22 00:05:34 UTC) #5
gri
10 years, 12 months ago (2014-03-22 00:06:14 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=5cacef3086fb ***

text/scanner: handle non-io.EOF errors

Currently Scan ignores an error returned from source if the number
of bytes source has read is 0.

Fixes issue 7594.

LGTM=gri
R=golang-codereviews, bradfitz, gri
CC=golang-codereviews
https://codereview.appspot.com/78120043

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

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