Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Issue 23601010: Make UTF-8 encoding of unpaired surrogates match Encoding standard (Closed)

Created:
7 years, 3 months ago by jsbell
Modified:
7 years, 3 months ago
CC:
blink-reviews, loislo+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, jeez, Ken Russell (switch to Gerrit), jungshik at Google
Visibility:
Public.

Description

Make UTF-8 encoding of unpaired surrogates match Encoding standard The Encoding standard says that unpaired UTF-16 surrogates in JS strings should be converted into U+FFFD (replacement character) during encode operations. This is (optionally) done already in WTFString::utf8() but not handled in TextCodecUTF8. BUG=277035 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157459

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review feedback #

Patch Set 3 : Add form encoding tests for unpaired surrogates #

Patch Set 4 : Rebased test results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M LayoutTests/fast/encoding/api/surrogate-pairs.html View 1 1 chunk +8 lines, -9 lines 0 comments Download
M LayoutTests/fast/encoding/api/surrogate-pairs-expected.txt View 1 chunk +12 lines, -18 lines 0 comments Download
M LayoutTests/fast/encoding/char-encoding.html View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M LayoutTests/fast/encoding/char-encoding-expected.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/wtf/text/TextCodecUTF8.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jsbell
This is a pretty scary change, just throwing it up for the bots to party ...
7 years, 3 months ago (2013-08-29 21:44:20 UTC) #1
jungshik at Google
https://codereview.chromium.org/23601010/diff/1/LayoutTests/fast/encoding/api/surrogate-pairs.html File LayoutTests/fast/encoding/api/surrogate-pairs.html (right): https://codereview.chromium.org/23601010/diff/1/LayoutTests/fast/encoding/api/surrogate-pairs.html#newcode8 LayoutTests/fast/encoding/api/surrogate-pairs.html:8: { input: "'abc123'", expected: [97, 98, 99, 49, 50, ...
7 years, 3 months ago (2013-08-30 00:39:26 UTC) #2
jsbell
https://codereview.chromium.org/23601010/diff/1/LayoutTests/fast/encoding/api/surrogate-pairs.html File LayoutTests/fast/encoding/api/surrogate-pairs.html (right): https://codereview.chromium.org/23601010/diff/1/LayoutTests/fast/encoding/api/surrogate-pairs.html#newcode8 LayoutTests/fast/encoding/api/surrogate-pairs.html:8: { input: "'abc123'", expected: [97, 98, 99, 49, 50, ...
7 years, 3 months ago (2013-08-30 00:43:56 UTC) #3
jungshik at Google
LGTM !
7 years, 3 months ago (2013-08-30 18:09:02 UTC) #4
Ken Russell (switch to Gerrit)
lgtm
7 years, 3 months ago (2013-08-30 18:11:24 UTC) #5
jsbell
jamesr@ - OWNERS review for Source/wtf?
7 years, 3 months ago (2013-09-03 18:20:10 UTC) #6
jamesr
Same comment as on the other - could you test in other browsers and put ...
7 years, 3 months ago (2013-09-05 01:50:21 UTC) #7
jsbell
+tkent@ On 2013/09/05 01:50:21, jamesr wrote: > Same comment as on the other - could ...
7 years, 3 months ago (2013-09-05 20:28:55 UTC) #8
tkent
limitLength() has a bug. I filed crbug.com/285997.
7 years, 3 months ago (2013-09-05 21:49:06 UTC) #9
jsbell
On 2013/09/05 21:49:06, tkent wrote: > limitLength() has a bug. I filed crbug.com/285997. Thanks - ...
7 years, 3 months ago (2013-09-05 22:32:54 UTC) #10
jsbell
Rebased on tkent's fix. As predicted, we pass the char-encoding.html test cases now. Encoding API: ...
7 years, 3 months ago (2013-09-06 16:34:25 UTC) #11
tkent
lgtm
7 years, 3 months ago (2013-09-08 21:27:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/23601010/28001
7 years, 3 months ago (2013-09-09 15:47:45 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-09-09 16:58:00 UTC) #14
Message was sent while issue was closed.
Change committed as 157459

Powered by Google App Engine
This is Rietveld 408576698