From 590df180a408029d0eaa7d2fcaa41334ee502517 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 28 Jun 2008 17:47:06 +0000 Subject: Manti#1624. Thank you, Melanie for a patch that: Sets XEngine threads to en-US culture before calling script events, fixes i18n issues with european locales. --- OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 4c9ffd0..cf84237 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -32,6 +32,7 @@ using System.Collections; using System.Collections.Generic; using System.Security.Policy; using System.Reflection; +using System.Globalization; using System.Xml; using libsecondlife; using log4net; @@ -669,6 +670,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine // private object ProcessEventHandler(object parms) { + CultureInfo USCulture = new CultureInfo("en-US"); + Thread.CurrentThread.CurrentCulture = USCulture; + XScriptInstance instance = (XScriptInstance) parms; return instance.EventProcessor(); -- cgit v1.1