aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorCharles Krinke2008-06-28 17:47:06 +0000
committerCharles Krinke2008-06-28 17:47:06 +0000
commit590df180a408029d0eaa7d2fcaa41334ee502517 (patch)
treec859bda4bfebc5e68f2916fb6c055db7cfa32908 /OpenSim/Region/ScriptEngine
parentExtracted the Avatar appearance functions out of the IUserService interface a... (diff)
downloadopensim-SC_OLD-590df180a408029d0eaa7d2fcaa41334ee502517.zip
opensim-SC_OLD-590df180a408029d0eaa7d2fcaa41334ee502517.tar.gz
opensim-SC_OLD-590df180a408029d0eaa7d2fcaa41334ee502517.tar.bz2
opensim-SC_OLD-590df180a408029d0eaa7d2fcaa41334ee502517.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs4
1 files changed, 4 insertions, 0 deletions
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;
32using System.Collections.Generic; 32using System.Collections.Generic;
33using System.Security.Policy; 33using System.Security.Policy;
34using System.Reflection; 34using System.Reflection;
35using System.Globalization;
35using System.Xml; 36using System.Xml;
36using libsecondlife; 37using libsecondlife;
37using log4net; 38using log4net;
@@ -669,6 +670,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
669 // 670 //
670 private object ProcessEventHandler(object parms) 671 private object ProcessEventHandler(object parms)
671 { 672 {
673 CultureInfo USCulture = new CultureInfo("en-US");
674 Thread.CurrentThread.CurrentCulture = USCulture;
675
672 XScriptInstance instance = (XScriptInstance) parms; 676 XScriptInstance instance = (XScriptInstance) parms;
673 677
674 return instance.EventProcessor(); 678 return instance.EventProcessor();