Add explicit CultureInfo to the script compile thread in DotNetEngine to
ensure that scripts will compile on nonenglish systems0.6.0-stable
parent
3747862999
commit
c2308d8a7d
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue