aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Culture.cs10
-rw-r--r--OpenSim/Region/Application/Application.cs6
-rw-r--r--OpenSim/Server/ServerMain.cs3
3 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Framework/Culture.cs b/OpenSim/Framework/Culture.cs
index 3d78fac..1a44660 100644
--- a/OpenSim/Framework/Culture.cs
+++ b/OpenSim/Framework/Culture.cs
@@ -52,5 +52,15 @@ namespace OpenSim.Framework
52 { 52 {
53 Thread.CurrentThread.CurrentCulture = m_cultureInfo; 53 Thread.CurrentThread.CurrentCulture = m_cultureInfo;
54 } 54 }
55
56 public static void SetDefaultCurrentCulture()
57 {
58 CultureInfo.DefaultThreadCurrentCulture = m_cultureInfo;
59 }
60
61 public static CultureInfo GetDefaultCurrentCulture()
62 {
63 return CultureInfo.DefaultThreadCurrentCulture;
64 }
55 } 65 }
56} \ No newline at end of file 66} \ No newline at end of file
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs
index 66ce8e5..e4c3329 100644
--- a/OpenSim/Region/Application/Application.cs
+++ b/OpenSim/Region/Application/Application.cs
@@ -74,6 +74,9 @@ namespace OpenSim
74 AppDomain.CurrentDomain.UnhandledException += 74 AppDomain.CurrentDomain.UnhandledException +=
75 new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); 75 new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
76 76
77 Culture.SetCurrentCulture();
78 Culture.SetDefaultCurrentCulture();
79
77 if(Util.IsWindows()) 80 if(Util.IsWindows())
78 ServicePointManager.DefaultConnectionLimit = 32; 81 ServicePointManager.DefaultConnectionLimit = 32;
79 else 82 else
@@ -183,8 +186,9 @@ namespace OpenSim
183 m_log.Warn("[OPENSIM MAIN]: Environment is not supported by OpenSimulator (" + supported + ")\n"); 186 m_log.Warn("[OPENSIM MAIN]: Environment is not supported by OpenSimulator (" + supported + ")\n");
184 } 187 }
185 188
189 m_log.InfoFormat("Default culture changed to {0}",Culture.GetDefaultCurrentCulture().DisplayName);
190
186 // Configure nIni aliases and localles 191 // Configure nIni aliases and localles
187 Culture.SetCurrentCulture();
188 192
189 // Validate that the user has the most basic configuration done 193 // Validate that the user has the most basic configuration done
190 // If not, offer to do the most basic configuration for them warning them along the way of the importance of 194 // If not, offer to do the most basic configuration for them warning them along the way of the importance of
diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs
index 4b7fd8a..09f6920 100644
--- a/OpenSim/Server/ServerMain.cs
+++ b/OpenSim/Server/ServerMain.cs
@@ -77,6 +77,9 @@ namespace OpenSim.Server
77 77
78 public static int Main(string[] args) 78 public static int Main(string[] args)
79 { 79 {
80 Culture.SetCurrentCulture();
81 Culture.SetDefaultCurrentCulture();
82
80 ServicePointManager.DefaultConnectionLimit = 64; 83 ServicePointManager.DefaultConnectionLimit = 64;
81 ServicePointManager.Expect100Continue = false; 84 ServicePointManager.Expect100Continue = false;
82 ServicePointManager.UseNagleAlgorithm = false; 85 ServicePointManager.UseNagleAlgorithm = false;