mirror of
https://github.com/opensim/opensim.git
synced 2026-05-17 20:25:34 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user