replace the wrong libOMV user modifiable Utils.EnUSCulture by our own no User modifiable Culture.FormatProvider, and also for internal coerence. We do use the libomv on other code paths, so that must be fixed

This commit is contained in:
UbitUmarov
2017-07-13 04:14:33 +01:00
parent 61e3fe42bd
commit bd249bdf5b
5 changed files with 57 additions and 57 deletions

View File

@@ -86,9 +86,9 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
writer.WriteStartElement("CoalescedObject");
writer.WriteAttributeString("x", size.X.ToString(Utils.EnUsCulture));
writer.WriteAttributeString("y", size.Y.ToString(Utils.EnUsCulture));
writer.WriteAttributeString("z", size.Z.ToString(Utils.EnUsCulture));
writer.WriteAttributeString("x", size.X.ToString(Culture.FormatProvider));
writer.WriteAttributeString("y", size.Y.ToString(Culture.FormatProvider));
writer.WriteAttributeString("z", size.Z.ToString(Culture.FormatProvider));
// Embed the offsets into the group XML
for (int i = 0; i < coaObjects.Count; i++)
@@ -100,9 +100,9 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
// i, obj.Name);
writer.WriteStartElement("SceneObjectGroup");
writer.WriteAttributeString("offsetx", offsets[i].X.ToString(Utils.EnUsCulture));
writer.WriteAttributeString("offsety", offsets[i].Y.ToString(Utils.EnUsCulture));
writer.WriteAttributeString("offsetz", offsets[i].Z.ToString(Utils.EnUsCulture));
writer.WriteAttributeString("offsetx", offsets[i].X.ToString(Culture.FormatProvider));
writer.WriteAttributeString("offsety", offsets[i].Y.ToString(Culture.FormatProvider));
writer.WriteAttributeString("offsetz", offsets[i].Z.ToString(Culture.FormatProvider));
SceneObjectSerializer.ToOriginalXmlFormat(obj, writer, doScriptStates);