Commits

ken...@google.com@630680e5-0e50-0410-840e-4b1c322b438d  committed d7cd104

Convert some \u escape sequences to UTF-8 because MSVC interprets them differently.

  • Participants
  • Parent commits 3b66848

Comments (0)

Files changed (1)

File src/google/protobuf/wire_format_unittest.cc

 // WriteAnyBytes: fine.
 // ReadAnyBytes: fine.
 const char * kInvalidUTF8String = "Invalid UTF-8: \xA0\xB0\xC0\xD0";
-const char * kValidUTF8String = "Valid UTF-8: \x01\x02\u8C37\u6B4C";
+// This used to be "Valid UTF-8: \x01\x02\u8C37\u6B4C", but MSVC seems to
+// interpret \u differently from GCC.
+const char * kValidUTF8String = "Valid UTF-8: \x01\x02\350\260\267\346\255\214";
 
 template<typename T>
 bool WriteMessage(const char *value, T *message, string *wire_buffer) {