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

Issue 5450073: code review 5450073: gzip: Convert between Latin-1 and Unicode

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by vadik
Modified:
12 years, 4 months ago
Reviewers:
rsc
CC:
bradfitz, rsc, peterGo, golang-dev
Visibility:
Public.

Description

gzip: Convert between Latin-1 and Unicode I realize I didn't send the tests in last time. Anyway, I added a test that knows too much about the package's internal structure, and I'm not sure whether it's the right thing to do. Vadik.

Patch Set 1 #

Patch Set 2 : diff -r 85e087089edf https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 3 : diff -r 85e087089edf https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 85e087089edf https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 85e087089edf https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -8 lines) Patch
M src/pkg/compress/gzip/gunzip.go View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M src/pkg/compress/gzip/gzip.go View 1 2 1 chunk +16 lines, -4 lines 0 comments Download
M src/pkg/compress/gzip/gzip_test.go View 1 2 3 4 4 chunks +32 lines, -3 lines 0 comments Download

Messages

Total messages: 14
vadik
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2011-12-02 20:36:23 UTC) #1
bradfitz
http://codereview.appspot.com/5450073/diff/2001/src/pkg/compress/gzip/gunzip.go File src/pkg/compress/gzip/gunzip.go (right): http://codereview.appspot.com/5450073/diff/2001/src/pkg/compress/gzip/gunzip.go#newcode111 src/pkg/compress/gzip/gunzip.go:111: s += string(v) repeatedly appending to and replacing a ...
12 years, 5 months ago (2011-12-02 21:37:35 UTC) #2
rsc
Thanks for looking into fixing this. A better conversion strategy would be to first check ...
12 years, 5 months ago (2011-12-02 21:45:48 UTC) #3
vadik
On 2011/12/02 21:45:48, rsc wrote: > Thanks for looking into fixing this. > > A ...
12 years, 5 months ago (2011-12-02 23:40:29 UTC) #4
vadik
Hello golang-dev@googlegroups.com, bradfitz@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2011-12-03 00:26:52 UTC) #5
vadik
On 2011/12/03 00:26:52, vadik wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:bradfitz@golang.org, mailto:rsc@golang.org (cc: > mailto:golang-dev@googlegroups.com), > > ...
12 years, 5 months ago (2011-12-03 00:29:43 UTC) #6
peterGo
I prefer simple, direct, easy-to-read, and reasonably efficient solutions. When I benchmarked your complicated solution, ...
12 years, 4 months ago (2011-12-05 15:37:00 UTC) #7
peterGo
For example, func (z *Decompressor) readString() (string, error) { // GZIP (RFC 1952) specifies that ...
12 years, 4 months ago (2011-12-05 15:48:52 UTC) #8
rsc
http://codereview.appspot.com/5450073/diff/7001/src/pkg/compress/gzip/gunzip.go File src/pkg/compress/gzip/gunzip.go (right): http://codereview.appspot.com/5450073/diff/7001/src/pkg/compress/gzip/gunzip.go#newcode113 src/pkg/compress/gzip/gunzip.go:113: if needconv { This code is great. I don't ...
12 years, 4 months ago (2011-12-07 17:24:11 UTC) #9
vadik
Hello bradfitz@golang.org, rsc@golang.org, go.peter.90@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 4 months ago (2011-12-09 11:21:40 UTC) #10
vadik
Hello bradfitz@golang.org, rsc@golang.org, go.peter.90@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 4 months ago (2011-12-09 11:25:36 UTC) #11
vadik
On 2011/12/09 11:25:36, vadik wrote: > Hello mailto:bradfitz@golang.org, mailto:rsc@golang.org, mailto:go.peter.90@gmail.com (cc: > mailto:golang-dev@googlegroups.com), > > ...
12 years, 4 months ago (2011-12-09 11:27:41 UTC) #12
rsc
LGTM
12 years, 4 months ago (2011-12-14 21:28:43 UTC) #13
rsc
12 years, 4 months ago (2011-12-14 22:17:43 UTC) #14
*** Submitted as http://code.google.com/p/go/source/detail?r=d8bb178f0f19 ***

gzip: Convert between Latin-1 and Unicode

I realize I didn't send the tests in last time.  Anyway, I added
a test that knows too much about the package's internal structure,
and I'm not sure whether it's the right thing to do.

Vadik.

R=bradfitz, rsc, go.peter.90
CC=golang-dev
http://codereview.appspot.com/5450073

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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