diff options
author | Melanie Thielker | 2008-09-28 20:29:56 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-28 20:29:56 +0000 |
commit | c2308d8a7d8a80d04bd7b070cb1b2f9c8b00afa7 (patch) | |
tree | 33d6396ae1586fdacb0be47c12aa5b6ef5fbefc8 /OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | |
parent | Plumb the connection though from llSetVehicleVectorParam (diff) | |
download | opensim-SC_OLD-c2308d8a7d8a80d04bd7b070cb1b2f9c8b00afa7.zip opensim-SC_OLD-c2308d8a7d8a80d04bd7b070cb1b2f9c8b00afa7.tar.gz opensim-SC_OLD-c2308d8a7d8a80d04bd7b070cb1b2f9c8b00afa7.tar.bz2 opensim-SC_OLD-c2308d8a7d8a80d04bd7b070cb1b2f9c8b00afa7.tar.xz |
Add explicit CultureInfo to the script compile thread in DotNetEngine to
ensure that scripts will compile on nonenglish systems
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index 7ba1a83..627b2a7 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Reflection; | 29 | using System.Reflection; |
30 | using System.Globalization; | ||
30 | using log4net; | 31 | using log4net; |
31 | using OpenMetaverse; | 32 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
@@ -140,6 +141,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
140 | ScenePresence presence = | 141 | ScenePresence presence = |
141 | World.GetScenePresence(taskInventoryItem.OwnerID); | 142 | World.GetScenePresence(taskInventoryItem.OwnerID); |
142 | 143 | ||
144 | CultureInfo USCulture = new CultureInfo("en-US"); | ||
145 | Thread.CurrentThread.CurrentCulture = USCulture; | ||
146 | |||
143 | try | 147 | try |
144 | { | 148 | { |
145 | // Compile (We assume LSL) | 149 | // Compile (We assume LSL) |