diff options
author | Charles Krinke | 2008-06-28 17:47:06 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-28 17:47:06 +0000 |
commit | 590df180a408029d0eaa7d2fcaa41334ee502517 (patch) | |
tree | c859bda4bfebc5e68f2916fb6c055db7cfa32908 /OpenSim/Region | |
parent | Extracted the Avatar appearance functions out of the IUserService interface a... (diff) | |
download | opensim-SC-590df180a408029d0eaa7d2fcaa41334ee502517.zip opensim-SC-590df180a408029d0eaa7d2fcaa41334ee502517.tar.gz opensim-SC-590df180a408029d0eaa7d2fcaa41334ee502517.tar.bz2 opensim-SC-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')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 4 |
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; | |||
32 | using System.Collections.Generic; | 32 | using System.Collections.Generic; |
33 | using System.Security.Policy; | 33 | using System.Security.Policy; |
34 | using System.Reflection; | 34 | using System.Reflection; |
35 | using System.Globalization; | ||
35 | using System.Xml; | 36 | using System.Xml; |
36 | using libsecondlife; | 37 | using libsecondlife; |
37 | using log4net; | 38 | using 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(); |