From 3e4740e5273128dc42fd63e481115ed0ef361e51 Mon Sep 17 00:00:00 2001 From: Christopher Lees Date: Sun, 22 Apr 2018 18:30:59 +0100 Subject: [PATCH] Fix: Use invariant culture when parsing version in Generator.Bind Closes https://github.com/opentk/opentk/issues/748 --- src/Generator.Bind/XmlSpecReader.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Generator.Bind/XmlSpecReader.cs b/src/Generator.Bind/XmlSpecReader.cs index 7907dfe3..9d5eff16 100644 --- a/src/Generator.Bind/XmlSpecReader.cs +++ b/src/Generator.Bind/XmlSpecReader.cs @@ -25,6 +25,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO; using System.Xml.XPath; using Bind.Structures; @@ -269,7 +270,7 @@ namespace Bind // our current apiversion. Extensions do not have a version, // so we add them anyway (which is desirable). if (!String.IsNullOrEmpty(version) && !String.IsNullOrEmpty(apiversion) && - Decimal.Parse(version) > Decimal.Parse(apiversion)) + Decimal.Parse(version, CultureInfo.InvariantCulture) > Decimal.Parse(apiversion, CultureInfo.InvariantCulture)) { continue; }