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

Issue 11565043: code review 11565043: go.text/encoding: add UTF-16 encodings. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by nigeltao
Modified:
12 years ago
Reviewers:
r
CC:
r, andybalholm, golang-dev, mpvl, rog
Visibility:
Public.

Description

go.text/encoding: add UTF-16 encodings. There are some TODOs concerning the exact behavior for bad UTF-16, but I'll address those after getting consensus on the broad-brush design. candide-utf-16le.txt was generated by iconv -f UTF-8 -t UTF-16LE < candide-utf-8.txt > candide-utf-16le.txt

Patch Set 1 #

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

Patch Set 3 : diff -r 4d356e5c87fb https://code.google.com/p/go.text #

Total comments: 10

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

Patch Set 5 : diff -r 7bbea3cccbc7 https://code.google.com/p/go.text #

Patch Set 6 : diff -r 7bbea3cccbc7 https://code.google.com/p/go.text #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -15 lines) Patch
M encoding/charmap.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M encoding/encoding.go View 1 2 chunks +0 lines, -3 lines 0 comments Download
M encoding/encoding_test.go View 1 2 3 3 chunks +72 lines, -12 lines 0 comments Download
A encoding/testdata/candide-utf-16le.txt View 1 Binary file 0 comments Download
A encoding/utf16.go View 1 2 3 4 1 chunk +240 lines, -0 lines 0 comments Download

Messages

Total messages: 6
nigeltao
Hello r@golang.org (cc: andybalholm@gmail.com, golang-dev@googlegroups.com, mpvl@golang.org, rogpeppe@gmail.com), I'd like you to review this change to ...
12 years ago (2013-07-19 06:12:36 UTC) #1
r
https://codereview.appspot.com/11565043/diff/5001/encoding/encoding_test.go File encoding/encoding_test.go (right): https://codereview.appspot.com/11565043/diff/5001/encoding/encoding_test.go#newcode279 encoding/encoding_test.go:279: // - inputs with multiple U+FEFF and U+FFFE runes. ...
12 years ago (2013-07-19 06:23:16 UTC) #2
nigeltao
Trivial edits were done. I'm leaning in favor of removing the UTF-8 synchronization code, but ...
12 years ago (2013-07-19 07:05:45 UTC) #3
nigeltao
PTAL. I will remove the UTF-8 synchronization code, but I'll do that in a follow-up ...
12 years ago (2013-07-29 05:36:19 UTC) #4
r
LGTM then delete the UTF-8 sync code
12 years ago (2013-07-30 01:46:38 UTC) #5
nigeltao
12 years ago (2013-07-30 01:53:42 UTC) #6
*** Submitted as
https://code.google.com/p/go/source/detail?r=c80cf5c1f0a2&repo=text ***

go.text/encoding: add UTF-16 encodings.

There are some TODOs concerning the exact behavior for bad UTF-16, but
I'll address those after getting consensus on the broad-brush design.

candide-utf-16le.txt was generated by
iconv -f UTF-8 -t UTF-16LE < candide-utf-8.txt > candide-utf-16le.txt

R=r
CC=andybalholm, golang-dev, mpvl, rogpeppe
https://codereview.appspot.com/11565043
Sign in to reply to this message.

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