From c2c21ea170c3ae5a8f6ee4d5382a603211114bac Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Mon, 13 Aug 2007 18:33:03 +0000 Subject: Setting culture for startup thread to invariant. Config now read correctly on alternate regional settings. --- OpenSim/Region/Application/Application.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index 954d3c3..f16aca8 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -38,7 +38,9 @@ namespace OpenSim [STAThread] public static void Main(string[] args) { + Console.WriteLine("OpenSim " + VersionInfo.Version + "\n"); + Console.Write("Performing compatibility checks... "); string supported = ""; @@ -53,6 +55,10 @@ namespace OpenSim Console.WriteLine("Starting...\n"); + // Set current culture + + System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(""); // en + ArgvConfigSource configSource = new ArgvConfigSource(args); configSource.AddSwitch("Startup", "inifile"); -- cgit v1.1