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

Issue 8536045: code review 8536045: mime/multipart: don't strip leading space/tab in quoted... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by bradfitz
Modified:
11 years ago
Reviewers:
minux1
CC:
golang-dev, r
Visibility:
Public.

Description

mime/multipart: don't strip leading space/tab in quoted-printable decoding Late bug fix, but this is arguably a regression from Go 1.0, since we added this transparent decoding since then. Without this fix, Go 1.0 users could decode this correctly, but Go 1.1 users would not be able to. The newly added test is from the RFC itself. The updated tests had the wrong "want" values before. They were there to test \r\n vs \n equivalence (which is unchanged), not leading whitespace. The skipWhite decoder struct field was added in the battles of Issue 4771 in revision b3bb265bfecf. It was just a wrong strategy, from an earlier round of attempts in https://codereview.appspot.com/7300092/ Update issue 4771 Fixes issue 5295

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r e974430a6f67 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -18 lines) Patch
M src/pkg/mime/multipart/quotedprintable.go View 1 2 3 4 4 chunks +4 lines, -16 lines 0 comments Download
M src/pkg/mime/multipart/quotedprintable_test.go View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 5
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years ago (2013-04-17 20:53:16 UTC) #1
bradfitz
R=minux, r On Wed, Apr 17, 2013 at 1:53 PM, <bradfitz@golang.org> wrote: > Reviewers: golang-dev1, ...
11 years ago (2013-04-17 20:58:27 UTC) #2
r
LGTM
11 years ago (2013-04-17 22:54:23 UTC) #3
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=fa6a760fcc63 *** mime/multipart: don't strip leading space/tab in quoted-printable decoding Late bug ...
11 years ago (2013-04-18 03:05:12 UTC) #4
minux1
11 years ago (2013-04-19 01:27:51 UTC) #5
Message was sent while issue was closed.
LGTM.
Sign in to reply to this message.

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