From c944013cfb2ebf72c03cfcd8c50069ecb65591af Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 28 Apr 2010 08:19:54 +1200 Subject: [PATCH] globally fix number parsing on non-english systems --- OpenRA.Game/Support/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.Game/Support/Program.cs b/OpenRA.Game/Support/Program.cs index a247df1ab4..026f8a3654 100644 --- a/OpenRA.Game/Support/Program.cs +++ b/OpenRA.Game/Support/Program.cs @@ -20,6 +20,8 @@ using System; using System.Diagnostics; +using System.Globalization; +using System.Windows.Forms; namespace OpenRA { @@ -28,6 +30,9 @@ namespace OpenRA [STAThread] static void Main( string[] args ) { + // brutal hack + Application.CurrentCulture = CultureInfo.InvariantCulture; + if( Debugger.IsAttached ) { Run( args );