globally fix number parsing on non-english systems

This commit is contained in:
Chris Forbes
2010-04-28 08:19:54 +12:00
parent 056e436337
commit c944013cfb

View File

@@ -20,6 +20,8 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Globalization;
using System.Windows.Forms;
namespace OpenRA namespace OpenRA
{ {
@@ -28,6 +30,9 @@ namespace OpenRA
[STAThread] [STAThread]
static void Main( string[] args ) static void Main( string[] args )
{ {
// brutal hack
Application.CurrentCulture = CultureInfo.InvariantCulture;
if( Debugger.IsAttached ) if( Debugger.IsAttached )
{ {
Run( args ); Run( args );