mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user