MantisBT - opensim
View Issue Details
0003916opensim[REGION] Script Functionspublic2009-07-19 23:282011-08-11 23:26
Instant Blue 
 
normaltrivialalways
acknowledgedopen 
 
 
Grid (Multiple Regions per Sim)
BasicPhysics
.NET / Windows64
None
0003916: llList2CSV without delimiters
This bug was discovered on product version 0.6.6.10051

llList2CSV is creating strings without the comma-space delimiters.

Found an odd bug of sorts.

list params = [1,2,3];
llSay(0, llList2CSV(params));
llSay(0, llList2CSV([params])); // this is bad code

Although the second line should show a compile problem, it's going through to the server just fine. In fact, the server joins the list as one large string without any delimiters.

With the above code, you'll see two messages.
1, 2, 3
123

The second is from the buggy code.
Hippo OpenSim Viewer 0.5.1 (LL 1.22.11) Mar 24 2009 17:47:38 (Hippo Release)
Release Notes

You are at 2558202.7, 2555643.7, 22.1 in Farnham located at c-76-100-8-247.hsd1.va.comcast.net (76.100.8.247:9009)
OpenSim 0.6.6 (Dev) .10051 (OS Microsoft Windows NT 6.0.6001 Service Pack 1) ChilTasks:True PhysPrim:True


CPU: Intel Pentium III/Pentium III Xeon (0.25 micron process) with external L2 cache (3177 MHz)
Memory: 4095 MB
OS Version: Microsoft Windows Vista Service Pack 1 (Build 6001)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 9600 GT/PCI/SSE2
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.25496 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 1412/14504 (9.7%)
No tags attached.
Issue History
2009-07-19 23:28Instant BlueNew Issue
2009-07-19 23:28Instant BlueSVN Revision => 0
2009-07-19 23:28Instant BlueRun Mode => Grid (Multiple Regions per Sim)
2009-07-19 23:28Instant BluePhysics Engine => BasicPhysics
2009-07-19 23:28Instant BlueEnvironment => .NET / Windows64
2009-07-19 23:28Instant BlueMono Version => None
2009-07-20 01:41melanieNote Added: 0012528
2009-07-27 13:15HomerHorwitzNote Added: 0012621
2011-08-11 23:26makopoppoNote Added: 0019469
2011-08-11 23:26makopoppoStatusnew => acknowledged

Notes
(0012528)
melanie   
2009-07-20 01:41   
As in SL, casting a list to a string will result in a concatenation of it's parts. Adding a list into a list results in an implicit cast to string, so the result fo the second expression is a list of one string element, consisting of the entire list, concatenated.
llList2CSV will then output that one element without delimiters. This may not be SL compatible, but it's one of these things that are hard to fix.
(0012621)
HomerHorwitz   
2009-07-27 13:15   
Additional info:
If you cast the list to string (llList2CSV([(string)params])), it will say "123" in SL, too. If not, it complains with the error "Lists may not contain lists" (SL viewer 1.23.4).
(0019469)
makopoppo   
2011-08-11 23:26   
This is still an issue in OpenSim 0.7.2-dev.