Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003916opensim[REGION] Script Functionspublic2009-07-19 23:282011-08-11 23:26
ReporterInstant Blue 
Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003916: llList2CSV without delimiters
DescriptionThis 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.
Additional InformationHippo 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%)
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
Script Engine
Environment.NET / Windows64
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0012528)
melanie (administrator)
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 (manager)
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 (manager)
2011-08-11 23:26

This is still an issue in OpenSim 0.7.2-dev.

- Issue History
Date Modified Username Field Change
2009-07-19 23:28 Instant Blue New Issue
2009-07-19 23:28 Instant Blue SVN Revision => 0
2009-07-19 23:28 Instant Blue Run Mode => Grid (Multiple Regions per Sim)
2009-07-19 23:28 Instant Blue Physics Engine => BasicPhysics
2009-07-19 23:28 Instant Blue Environment => .NET / Windows64
2009-07-19 23:28 Instant Blue Mono Version => None
2009-07-20 01:41 melanie Note Added: 0012528
2009-07-27 13:15 HomerHorwitz Note Added: 0012621
2011-08-11 23:26 makopoppo Note Added: 0019469
2011-08-11 23:26 makopoppo Status new => acknowledged


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker