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

Unified Diff: src/debug-agent.cc

Issue 121173009: String:WriteUtf8: Add REPLACE_INVALID_UTF8 option (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: DISALLOW_INVALID_UTF8 flag and fixes Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/debug-agent.cc
diff --git a/src/debug-agent.cc b/src/debug-agent.cc
index d3d22c9133c22f3e8f82ce42ef2ae14f87bdd744..1b59591cbeb907eebb3cd1c632bb1674cabe4113 100644
--- a/src/debug-agent.cc
+++ b/src/debug-agent.cc
@@ -419,6 +419,7 @@ bool DebuggerAgentUtil::SendMessage(Socket* conn,
for (int i = 0; i < message.length(); i++) {
// Write next UTF-8 encoded character to buffer.
uint16_t character = message[i];
+ // @TODO Fix this Utf8::Encode call site somehow.
buffer_position +=
unibrow::Utf8::Encode(buffer + buffer_position, character, previous);
ASSERT(buffer_position <= kBufferSize);

Powered by Google App Engine
This is Rietveld 408576698