Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7975950
)
THRIFT-2298 TJsonProtocol implementation for C# does not allow for both possible...
author
Jens Geyer
<jensg@apache.org>
Thu, 26 Dec 2013 17:56:05 +0000
(18:56 +0100)
committer
Jens Geyer
<jensg@apache.org>
Thu, 26 Dec 2013 18:00:28 +0000
(19:00 +0100)
Patch: Jens Geyer
lib/csharp/src/Protocol/TJSONProtocol.cs
patch
|
blob
|
history
diff --git
a/lib/csharp/src/Protocol/TJSONProtocol.cs
b/lib/csharp/src/Protocol/TJSONProtocol.cs
index
cad9134
..
14db9cc
100644
(file)
--- a/
lib/csharp/src/Protocol/TJSONProtocol.cs
+++ b/
lib/csharp/src/Protocol/TJSONProtocol.cs
@@
-69,10
+69,10
@@
namespace Thrift.Protocol
1, 1,(byte)'"', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
};
- private char[] ESCAPE_CHARS = "\"\\bfnrt".ToCharArray();
+ private char[] ESCAPE_CHARS = "\"\\
/
bfnrt".ToCharArray();
private byte[] ESCAPE_CHAR_VALS = {
- (byte)'"', (byte)'\\', (byte)'\b', (byte)'\f', (byte)'\n', (byte)'\r', (byte)'\t',
+ (byte)'"', (byte)'\\', (byte)'
/', (byte)'
\b', (byte)'\f', (byte)'\n', (byte)'\r', (byte)'\t',
};
private const int DEF_STRING_SIZE = 16;