mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than constructing fresh copies.
The encodings are thread-safe and already used in such a manner in other places. This isn't done where Byte Order Mark output is suppressed, since Encoding.UTF8 is constructed to output the BOM.
This commit is contained in:
@@ -1763,7 +1763,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
tfs.Read(tdata, 0, tdata.Length);
|
||||
}
|
||||
|
||||
assem = new System.Text.ASCIIEncoding().GetString(tdata);
|
||||
assem = Encoding.ASCII.GetString(tdata);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user