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

Issue 11410032: Add support for non ASCII strings when communicating with native ports (Closed)

Created:
8 years, 1 month ago by Søren Gjesse
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for non ASCII strings when communicating with native ports The string representation in a Dart_CObject strructure is now UTF8. All strings read are now converted to UTF8 from either ASCII or UTF16 serialization. All strings posted should be valid UTF8 and are serialized as either ASCII or UTF16 depending on the content. Proper andling of surrogate pairs is missing, but will be added when https://codereview.chromium.org/11368138/ lands. R=ager@google.com, erikcorry@google.com, asiva@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=14887

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added check for valid UTF-8 sequences wehn sending Dart_CObject message structures #

Patch Set 3 : Minor change #

Patch Set 4 : Rebase + update test expectations #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -45 lines) Patch
M runtime/include/dart_api.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 1 chunk +5 lines, -2 lines 2 comments Download
M runtime/vm/dart_api_message.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/dart_api_message.cc View 1 8 chunks +79 lines, -23 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 2 3 11 chunks +63 lines, -12 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 2 chunks +3 lines, -3 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
Søren Gjesse
8 years, 1 month ago (2012-11-12 10:42:59 UTC) #1
erikcorry
lgtm https://codereview.chromium.org/11410032/diff/1/runtime/vm/snapshot_test.cc File runtime/vm/snapshot_test.cc (right): https://codereview.chromium.org/11410032/diff/1/runtime/vm/snapshot_test.cc#newcode538 runtime/vm/snapshot_test.cc:538: // TODO(sgjesse): Add tests with non-BMP characters. You ...
8 years, 1 month ago (2012-11-12 11:44:06 UTC) #2
Mads Ager (google)
lgtm
8 years, 1 month ago (2012-11-12 12:11:26 UTC) #3
Søren Gjesse
Mads, please take a look at patch set #2 as well. https://codereview.chromium.org/11410032/diff/1/runtime/vm/snapshot_test.cc File runtime/vm/snapshot_test.cc (right): ...
8 years, 1 month ago (2012-11-12 16:18:10 UTC) #4
Mads Ager (google)
LGTM. Thanks for adding the extra checking. That should save me some time when I ...
8 years, 1 month ago (2012-11-12 18:12:15 UTC) #5
Ivan Posva
DBC -ip https://codereview.chromium.org/11410032/diff/9003/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/11410032/diff/9003/runtime/vm/dart_api_impl.cc#newcode1023 runtime/vm/dart_api_impl.cc:1023: Dart_CObject* message) { No need to wrap ...
8 years, 1 month ago (2012-11-14 19:07:15 UTC) #6
Søren Gjesse
8 years, 1 month ago (2012-11-15 08:16:53 UTC) #7
https://codereview.chromium.org/11410032/diff/9003/runtime/vm/dart_api_impl.cc
File runtime/vm/dart_api_impl.cc (right):

https://codereview.chromium.org/11410032/diff/9003/runtime/vm/dart_api_impl.c...
runtime/vm/dart_api_impl.cc:1023: Dart_CObject* message) {
On 2012/11/14 19:07:15, Ivan Posva wrote:
> No need to wrap the line.

https://codereview.chromium.org//11308031.

https://codereview.chromium.org/11410032/diff/9003/tests/standalone/standalon...
File tests/standalone/standalone.status (right):

https://codereview.chromium.org/11410032/diff/9003/tests/standalone/standalon...
tests/standalone/standalone.status:9: [ $system == macos ]
On 2012/11/14 19:07:15, Ivan Posva wrote:
> This empty qualifier makes no sense.

Mads removed this in
https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14891.

Powered by Google App Engine
This is Rietveld 408576698