aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/wire_format_unittest.cc
diff options
context:
space:
mode:
authorkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-04-28 02:16:53 +0000
committerkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-04-28 02:16:53 +0000
commit503a4dd705065a74b8d009e347fdba1c18d35691 (patch)
tree8fca1f96bf579f4a519838cbf204703d1f79c7a9 /src/google/protobuf/wire_format_unittest.cc
parent30be0a875899d07fd301d4fb0a8e55aa31533a2e (diff)
downloadprotobuf-503a4dd705065a74b8d009e347fdba1c18d35691.tar.gz
protobuf-503a4dd705065a74b8d009e347fdba1c18d35691.tar.bz2
protobuf-503a4dd705065a74b8d009e347fdba1c18d35691.zip
Convert some \u escape sequences to UTF-8 because MSVC interprets them differently.
Diffstat (limited to 'src/google/protobuf/wire_format_unittest.cc')
-rw-r--r--src/google/protobuf/wire_format_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/google/protobuf/wire_format_unittest.cc b/src/google/protobuf/wire_format_unittest.cc
index 1f00a93d..6352b0a6 100644
--- a/src/google/protobuf/wire_format_unittest.cc
+++ b/src/google/protobuf/wire_format_unittest.cc
@@ -673,7 +673,9 @@ TEST_F(WireFormatInvalidInputTest, InvalidStringInUnknownGroup) {
// 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) {