You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2013/09/18 23:31:04 UTC

git commit: THRIFT-2191 Fix charp JSONProtocol.ReadJSONDouble (specify InvariantCulture)

Updated Branches:
  refs/heads/master fd7ddef72 -> d73aa078d


THRIFT-2191 Fix charp JSONProtocol.ReadJSONDouble (specify InvariantCulture)

Patch: Alexander Makarov


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/d73aa078
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/d73aa078
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/d73aa078

Branch: refs/heads/master
Commit: d73aa078d021f8a0aea0c3a6725618127d698ff3
Parents: fd7ddef
Author: Jens Geyer <je...@apache.org>
Authored: Wed Sep 18 23:30:42 2013 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Wed Sep 18 23:30:42 2013 +0200

----------------------------------------------------------------------
 lib/csharp/src/Protocol/TJSONProtocol.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/d73aa078/lib/csharp/src/Protocol/TJSONProtocol.cs
----------------------------------------------------------------------
diff --git a/lib/csharp/src/Protocol/TJSONProtocol.cs b/lib/csharp/src/Protocol/TJSONProtocol.cs
index 3b27d30..cad9134 100644
--- a/lib/csharp/src/Protocol/TJSONProtocol.cs
+++ b/lib/csharp/src/Protocol/TJSONProtocol.cs
@@ -863,7 +863,7 @@ namespace Thrift.Protocol
 				}
 				try
 				{
-					return Double.Parse(ReadJSONNumericChars());
+					return Double.Parse(ReadJSONNumericChars(), CultureInfo.InvariantCulture);
 				}
 				catch (FormatException)
 				{