Chromium Code Reviews
DescriptionDo not externalize Dart strings as C strings for "print()".
Dart strings with embedded '\0' characters cannot be faithfully
represented as a C string.
This change adds Dart_StringToBytes to the Dart API. This function
converts a Dart string to array of UTF-8 code units and returns a
length. Builtin::PrintString now calls Dart_StringToBytes instead of
Dart_StringToCString and, for I/O, fwrite is called instead of fprintf
with the string format specifier.
BUG=1098
Committed: https://code.google.com/p/dart/source/detail?r=7260
Patch Set 1 #
Total comments: 3
Patch Set 2 : address review comments #
Messages
Total messages: 4 (0 generated)
|
|||||||||||||||||||||||||||||||||||||