| Index: runtime/vm/scanner.cc
|
| ===================================================================
|
| --- runtime/vm/scanner.cc (revision 15110)
|
| +++ runtime/vm/scanner.cc (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "vm/symbols.h"
|
| #include "vm/thread.h"
|
| #include "vm/token.h"
|
| +#include "vm/unicode.h"
|
|
|
| namespace dart {
|
|
|
| @@ -882,8 +883,11 @@
|
| ScanNumber(false);
|
| } else {
|
| char msg[128];
|
| + char utf8_char[5];
|
| + int len = Utf8::Encode(c0_, utf8_char);
|
| + utf8_char[len] = '\0';
|
| OS::SNPrint(msg, sizeof(msg),
|
| - "unexpected character: %c (%02x)\n", c0_, c0_);
|
| + "unexpected character: '%s' (U+%04X)\n", utf8_char, c0_);
|
| ErrorMsg(msg);
|
| ReadChar();
|
| }
|
|
|