aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/DataSnapshot/DataSnapshotManager.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs3
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs15
5 files changed, 4 insertions, 22 deletions
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
index ba23216..2dbdce6 100644
--- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
+++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
@@ -515,7 +515,7 @@ namespace OpenSim.Region.DataSnapshot
515 m_log.Warn("[DATASNAPSHOT] Unable to decode reply from data service. Ignoring. " + e.StackTrace); 515 m_log.Warn("[DATASNAPSHOT] Unable to decode reply from data service. Ignoring. " + e.StackTrace);
516 } 516 }
517 // This is not quite working, so... 517 // This is not quite working, so...
518 string responseStr = ASCIIEncoding.UTF8.GetString(response); 518 string responseStr = Encoding.UTF8.GetString(response);
519 m_log.Info("[DATASNAPSHOT] data service notified: " + url); 519 m_log.Info("[DATASNAPSHOT] data service notified: " + url);
520 } 520 }
521 521
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 419ca8f..67c6ad2 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -583,7 +583,7 @@ namespace OpenSim.Region.ScriptEngine.Common
583 return objectname; 583 return objectname;
584 } 584 }
585 585
586 EntityBase SensedObject = null; 586 EntityBase SensedObject;
587 lock (World.Entities) 587 lock (World.Entities)
588 { 588 {
589 World.Entities.TryGetValue(objecUUID, out SensedObject); 589 World.Entities.TryGetValue(objecUUID, out SensedObject);
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
index 013ae0f..c293ecb 100644
--- a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
+++ b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
@@ -119,7 +119,7 @@ namespace OpenSim.Region.ScriptEngine.Common
119 if (myIQS.QueueSize == 0) 119 if (myIQS.QueueSize == 0)
120 return; 120 return;
121 121
122 string receivedData = Encoding.ASCII.GetString(myIQS.Queue, 0, myIQS.QueueSize); 122 string receivedData = Encoding.UTF8.GetString(myIQS.Queue, 0, myIQS.QueueSize);
123 Debug.WriteLine("RAW: " + receivedData); 123 Debug.WriteLine("RAW: " + receivedData);
124 124
125 byte newLine = 10; 125 byte newLine = 10;
@@ -197,7 +197,7 @@ namespace OpenSim.Region.ScriptEngine.Common
197 tmpStr += "," + p[i].GetType().ToString() + "|" + HttpUtility.UrlEncode(p[i].ToString()); // .Replace(",", "%44") 197 tmpStr += "," + p[i].GetType().ToString() + "|" + HttpUtility.UrlEncode(p[i].ToString()); // .Replace(",", "%44")
198 } 198 }
199 tmpStr += "\n"; 199 tmpStr += "\n";
200 byte[] byteData = Encoding.ASCII.GetBytes(tmpStr); 200 byte[] byteData = Encoding.UTF8.GetBytes(tmpStr);
201 TCPS.Send(ID, byteData, 0, byteData.Length); 201 TCPS.Send(ID, byteData, 0, byteData.Length);
202 } 202 }
203 } 203 }
diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs
index e4a57e8..06ae1e9 100644
--- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs
+++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSO_Parser.cs
@@ -289,10 +289,8 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO
289 289
290 //} 290 //}
291 // READ EVENT CODE CHUNKS 291 // READ EVENT CODE CHUNKS
292 LSO_Struct.CodeChunk[] myEventCodeChunk;
293 if (myStateFrameBlock.StateCount > 0) 292 if (myStateFrameBlock.StateCount > 0)
294 { 293 {
295 myEventCodeChunk = new LSO_Struct.CodeChunk[myStateFrameBlock.StateCount];
296 for (int i = 0; i < myStateFrameBlock.StateCount; i++) 294 for (int i = 0; i < myStateFrameBlock.StateCount; i++)
297 { 295 {
298 // TODO: Somehow organize events and functions so they can be found again, 296 // TODO: Somehow organize events and functions so they can be found again,
@@ -465,7 +463,6 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO
465 // TODO: How to determine number of codechunks -- does this method work? 463 // TODO: How to determine number of codechunks -- does this method work?
466 myCodeChunk.CodeChunkArguments = new List<LSO_Struct.CodeChunkArgument>(); 464 myCodeChunk.CodeChunkArguments = new List<LSO_Struct.CodeChunkArgument>();
467 byte reader = br_read(1)[0]; 465 byte reader = br_read(1)[0];
468 reader = br_read(1)[0];
469 466
470 // NOTE ON CODE CHUNK ARGUMENTS 467 // NOTE ON CODE CHUNK ARGUMENTS
471 // This determins type definition 468 // This determins type definition
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs
index 39babd6..c917e1e 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs
@@ -656,21 +656,6 @@ namespace OpenSim.DataStore.MSSQL
656 656
657 657
658 s.ExtraParams = (byte[]) row["ExtraParams"]; 658 s.ExtraParams = (byte[]) row["ExtraParams"];
659 // System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
660 // string texture = encoding.GetString((Byte[])row["Texture"]);
661 // if (!texture.StartsWith("<"))
662 // {
663 // //here so that we can still work with old format database files (ie from before I added xml serialization)
664 // LLObject.TextureEntry textureEntry = null;
665 // textureEntry = new LLObject.TextureEntry(new LLUUID(texture));
666 // s.TextureEntry = textureEntry.ToBytes();
667 // }
668 // else
669 // {
670 // TextureBlock textureEntry = TextureBlock.FromXmlString(texture);
671 // s.TextureEntry = textureEntry.TextureData;
672 // s.ExtraParams = textureEntry.ExtraParams;
673 // }
674 659
675 return s; 660 return s;
676 } 661 }