From e479507bed1aef469a17fa6096a1302d93511920 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Wed, 19 Jul 2017 12:49:55 +0200
Subject: [PATCH] culture-independent decimal separator for writing SI values
 to XML format

---
 VectoCommon/VectoCommon/Utils/SI.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/VectoCommon/VectoCommon/Utils/SI.cs b/VectoCommon/VectoCommon/Utils/SI.cs
index 425caecc90..185f385ba0 100644
--- a/VectoCommon/VectoCommon/Utils/SI.cs
+++ b/VectoCommon/VectoCommon/Utils/SI.cs
@@ -2295,7 +2295,7 @@ namespace TUGraz.VectoCommon.Utils
 		public string ToXMLFormat(uint? decimals = null)
 		{
 			decimals = decimals ?? 2;
-			return Val.ToString("F" + decimals.Value);
+			return Val.ToString("F" + decimals.Value, CultureInfo.InvariantCulture);
 		}
 
 		public class EqualityComparer<T> : IEqualityComparer<T> where T : SI
@@ -2306,6 +2306,7 @@ namespace TUGraz.VectoCommon.Utils
 			{
 				_precision = precision;
 			}
+
 			public bool Equals(T x, T y)
 			{
 				return x.IsEqual(y.Value(), _precision);
-- 
GitLab