Setting culture for startup thread to invariant. Config now read correctly on alternate regional settings.

afrisby
Tedd Hansen 2007-08-13 18:33:03 +00:00
parent 8af12cd9a8
commit c2c21ea170
1 changed files with 6 additions and 0 deletions

View File

@ -38,8 +38,10 @@ namespace OpenSim
[STAThread]
public static void Main(string[] args)
{
Console.WriteLine("OpenSim " + VersionInfo.Version + "\n");
Console.Write("Performing compatibility checks... ");
string supported = "";
if (OpenSim.Framework.Utilities.Util.IsEnvironmentSupported(ref 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");