Setting culture for startup thread to invariant. Config now read correctly on alternate regional settings.
parent
8af12cd9a8
commit
c2c21ea170
|
@ -38,7 +38,9 @@ namespace OpenSim
|
||||||
[STAThread]
|
[STAThread]
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
|
||||||
Console.WriteLine("OpenSim " + VersionInfo.Version + "\n");
|
Console.WriteLine("OpenSim " + VersionInfo.Version + "\n");
|
||||||
|
|
||||||
|
|
||||||
Console.Write("Performing compatibility checks... ");
|
Console.Write("Performing compatibility checks... ");
|
||||||
string supported = "";
|
string supported = "";
|
||||||
|
@ -53,6 +55,10 @@ namespace OpenSim
|
||||||
|
|
||||||
Console.WriteLine("Starting...\n");
|
Console.WriteLine("Starting...\n");
|
||||||
|
|
||||||
|
// Set current culture
|
||||||
|
|
||||||
|
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(""); // en
|
||||||
|
|
||||||
ArgvConfigSource configSource = new ArgvConfigSource(args);
|
ArgvConfigSource configSource = new ArgvConfigSource(args);
|
||||||
|
|
||||||
configSource.AddSwitch("Startup", "inifile");
|
configSource.AddSwitch("Startup", "inifile");
|
||||||
|
|
Loading…
Reference in New Issue