Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 8e1cf43d85a45c3e70483b0c3375fbc220c2533a..02ec1248f051d423770370158c12b468230a3b8d 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -76,12 +76,12 @@ Debug::~Debug() { |
static void PrintLn(v8::Local<v8::Value> value) { |
v8::Local<v8::String> s = value->ToString(); |
- ScopedVector<char> data(s->Length() + 1); |
+ ScopedVector<char> data(s->Utf8Length() + 1); |
if (data.start() == NULL) { |
V8::FatalProcessOutOfMemory("PrintLn"); |
return; |
} |
- s->WriteAscii(data.start()); |
+ s->WriteUtf8(data.start()); |
PrintF("%s\n", data.start()); |
} |