Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
503a4dd7
Commit
503a4dd7
authored
Apr 28, 2009
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert some \u escape sequences to UTF-8 because MSVC interprets them differently.
parent
30be0a87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wire_format_unittest.cc
src/google/protobuf/wire_format_unittest.cc
+3
-1
No files found.
src/google/protobuf/wire_format_unittest.cc
View file @
503a4dd7
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment