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

Issue 2498653002: Return one U+fffd for longest subpart of incomplete utf-8 character. (Closed)

Created:
4 years, 1 month ago by vogelheim
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return one U+fffd for longest subpart of incomplete utf-8 character. This brings the utf-8 decoder in line w/ the Unicode spec recommendation, and also with the utf-8 decoder in V8. This latter bit is the motivation for this change, since either this or the v8 utf-8 decoder gets used for JavaScript source code, and they should agree with each other. More details + spec references in the bug. BUG=chromium:662822 Committed: https://crrev.com/9a8c03cf61f42e45e4c4d2362d97cc2c5abbdc1f Cr-Commit-Position: refs/heads/master@{#432470}

Patch Set 1 #

Patch Set 2 : Updated test expectations. #

Total comments: 4

Patch Set 3 : Remove dead assignments. #

Total comments: 2

Patch Set 4 : Fix comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -23 lines) Patch
M third_party/WebKit/LayoutTests/fast/encoding/char-decoding-invalid-trail.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp View 1 2 3 9 chunks +34 lines, -21 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
vogelheim
4 years, 1 month ago (2016-11-15 15:40:40 UTC) #8
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-11-15 19:11:06 UTC) #12
marja
Posting comments from in-person code review https://codereview.chromium.org/2498653002/diff/20001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp File third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp (right): https://codereview.chromium.org/2498653002/diff/20001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp#newcode269 third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp:269: count = -character; ...
4 years, 1 month ago (2016-11-16 08:41:39 UTC) #13
vogelheim
https://codereview.chromium.org/2498653002/diff/20001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp File third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp (right): https://codereview.chromium.org/2498653002/diff/20001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp#newcode269 third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp:269: count = -character; On 2016/11/16 08:41:38, marja wrote: > ...
4 years, 1 month ago (2016-11-16 09:53:16 UTC) #16
marja
lgtm % comment https://codereview.chromium.org/2498653002/diff/40001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp File third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp (right): https://codereview.chromium.org/2498653002/diff/40001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp#newcode437 third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp:437: // Each error generates a replacement ...
4 years, 1 month ago (2016-11-16 09:59:14 UTC) #17
vogelheim
https://codereview.chromium.org/2498653002/diff/40001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp File third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp (right): https://codereview.chromium.org/2498653002/diff/40001/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp#newcode437 third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp:437: // Each error generates a replacement character and consumes ...
4 years, 1 month ago (2016-11-16 10:35:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2498653002/60001
4 years, 1 month ago (2016-11-16 11:00:47 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-16 13:03:54 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 13:07:14 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9a8c03cf61f42e45e4c4d2362d97cc2c5abbdc1f
Cr-Commit-Position: refs/heads/master@{#432470}

Powered by Google App Engine
This is Rietveld 408576698