THRIFT-2191 Fix charp JSONProtocol.ReadJSONDouble (specify InvariantCulture)
authorJens Geyer <jensg@apache.org>
Wed, 18 Sep 2013 21:30:42 +0000 (23:30 +0200)
committerJens Geyer <jensg@apache.org>
Wed, 18 Sep 2013 21:30:42 +0000 (23:30 +0200)
Patch: Alexander Makarov

lib/csharp/src/Protocol/TJSONProtocol.cs

index 3b27d30..cad9134 100644 (file)
@@ -863,7 +863,7 @@ namespace Thrift.Protocol
                                }
                                try
                                {
-                                       return Double.Parse(ReadJSONNumericChars());
+                                       return Double.Parse(ReadJSONNumericChars(), CultureInfo.InvariantCulture);
                                }
                                catch (FormatException)
                                {