You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2017/03/06 23:30:05 UTC

[41/50] [abbrv] activemq-nms-stomp git commit: apply suggested fix for: https://issues.apache.org/jira/browse/AMQNET-411

apply suggested fix for: https://issues.apache.org/jira/browse/AMQNET-411


Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/commit/5a675184
Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/tree/5a675184
Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/diff/5a675184

Branch: refs/heads/1.5.x
Commit: 5a6751844a63f507ab7dd6a208f98bf243958abd
Parents: 5ba89b3
Author: Timothy A. Bish <ta...@apache.org>
Authored: Wed May 15 20:23:13 2013 +0000
Committer: Timothy A. Bish <ta...@apache.org>
Committed: Wed May 15 20:23:13 2013 +0000

----------------------------------------------------------------------
 src/main/csharp/Protocol/StompWireFormat.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/blob/5a675184/src/main/csharp/Protocol/StompWireFormat.cs
----------------------------------------------------------------------
diff --git a/src/main/csharp/Protocol/StompWireFormat.cs b/src/main/csharp/Protocol/StompWireFormat.cs
index bf6e278..8412d6e 100644
--- a/src/main/csharp/Protocol/StompWireFormat.cs
+++ b/src/main/csharp/Protocol/StompWireFormat.cs
@@ -20,6 +20,7 @@ using Apache.NMS.Util;
 using System;
 using System.IO;
 using System.Text;
+using System.Globalization;
 
 namespace Apache.NMS.Stomp.Protocol
 {
@@ -196,7 +197,8 @@ namespace Apache.NMS.Stomp.Protocol
 
             if(frame.HasProperty("version"))
             {
-                remoteWireFormatInfo.Version = Single.Parse(frame.RemoveProperty("version"));
+                remoteWireFormatInfo.Version = Single.Parse(
+                    frame.RemoveProperty("version"), CultureInfo.InvariantCulture);
 
                 if(remoteWireFormatInfo.Version > 1.0f)
                 {