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

Issue 8926046: code review 8926046: encoding/json: document that marshaling invalid utf-8 s... (Closed)

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

Description

encoding/json: document that marshaling invalid utf-8 sequence will return error Also added docs for InvalidUTF8Error. Fixes issue 5360.

Patch Set 1 #

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

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

Total comments: 1

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

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

Total comments: 1

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M src/pkg/encoding/json/encode.go View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 10
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years ago (2013-04-29 15:19:48 UTC) #1
adg
https://codereview.appspot.com/8926046/diff/4001/src/pkg/encoding/json/encode.go File src/pkg/encoding/json/encode.go (right): https://codereview.appspot.com/8926046/diff/4001/src/pkg/encoding/json/encode.go#newcode43 src/pkg/encoding/json/encode.go:43: // if invalid UTF-8 sequence is encountered. s/if invalid/if ...
12 years ago (2013-04-29 16:05:40 UTC) #2
minux1
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-04-29 16:22:11 UTC) #3
minux1
Please wait a moment, i will take the chance to document InvalidUTF8Error.
12 years ago (2013-04-29 16:23:17 UTC) #4
minux1
PTAL. Now also added docs for InvalidUTF8Error.
12 years ago (2013-04-29 16:29:46 UTC) #5
r
LGTM https://codereview.appspot.com/8926046/diff/16001/src/pkg/encoding/json/encode.go File src/pkg/encoding/json/encode.go (right): https://codereview.appspot.com/8926046/diff/16001/src/pkg/encoding/json/encode.go#newcode42 src/pkg/encoding/json/encode.go:42: // String values encode as JSON strings, InvalidUTF8Error ...
12 years ago (2013-04-29 22:17:00 UTC) #6
minux1
*** Submitted as https://code.google.com/p/go/source/detail?r=6aab8f011070 *** encoding/json: document that marshaling invalid utf-8 sequence will return error ...
12 years ago (2013-04-30 03:22:02 UTC) #7
tylere_gmail.com
Is there anything in the spec that actually says which way this should behave? As ...
12 years ago (2013-05-01 14:38:12 UTC) #8
minux1
On Wed, May 1, 2013 at 10:38 PM, <tylere@gmail.com> wrote: > Is there anything in ...
12 years ago (2013-05-01 18:31:47 UTC) #9
rsc
12 years ago (2013-05-01 19:18:21 UTC) #10
It's too late to change this behavior. We're just clarifying the docs.
Sign in to reply to this message.

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