diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs index 60fdf39f74..4bd0b455da 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs @@ -63,6 +63,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine public EventQueueThreadClass()//EventQueueManager eqm { + CultureInfo USCulture = new CultureInfo("en-US"); + Thread.CurrentThread.CurrentCulture = USCulture; + //eventQueueManager = eqm; ReadConfig(); Start(); diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index 7ba1a83cf9..627b2a7141 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs @@ -27,6 +27,7 @@ using System; using System.Reflection; +using System.Globalization; using log4net; using OpenMetaverse; using OpenSim.Framework; @@ -140,6 +141,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine ScenePresence presence = World.GetScenePresence(taskInventoryItem.OwnerID); + CultureInfo USCulture = new CultureInfo("en-US"); + Thread.CurrentThread.CurrentCulture = USCulture; + try { // Compile (We assume LSL) diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 6bafd69ba4..1833d5c08d 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -496,6 +496,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine ScenePresence presence = m_Scene.GetScenePresence(item.OwnerID); string assembly = ""; + + CultureInfo USCulture = new CultureInfo("en-US"); + Thread.CurrentThread.CurrentCulture = USCulture; + try { assembly = m_Compiler.PerformScriptCompile(script,