mirror of
https://github.com/opensim/opensim.git
synced 2026-05-19 22:45:43 +08:00
Add explicit CultureInfo to the script compile thread in DotNetEngine to
ensure that scripts will compile on nonenglish systems
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user