Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007264opensim[REGION] Scripting Enginepublic2014-07-12 09:522014-07-13 09:27
Reportermarcus73 core 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformLINUXOSUBUNTU 32bitOS Version12.04 LTS ITALY
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007264: Problem about international settings for dates, numbers, currency
DescriptionThe problem occurs when you see the content of a variable.

For example, a variable that contains the color white in RGB format is displayed like this: <1,00000,1,00000,1,00000>
because the decimal separator used in Italy is the comma (',') and not the dot ('.')

I tried to solve the problem by modifying the source code of OpenSim.
The git-diff's file is attached.
Steps To ReproduceA script like this:

default
{
    state_entry()
    {
        llSay(0, "Script running");
    }
    
    touch_start(integer n)
    {
        vector color=<1,1,1>;
        llSetColor(color,ALL_SIDES);
        
        llSay(0,(string) color);
    }
}

Produces a result as this in chat local:
[09:40] Primitive: Script running
[09:40] Primitive: <1,000000,1,000000,1,000000>
Additional InformationAnother problem that i've found is that the format of the result:
<1,000000,1,000000,1,000000>

is different by the result that i obtain in SL:
<1.000000, 1.000000, 1.000000>

There are spaces in the data that are not inserted in OpenSim.

Scripts that try to decode this data don't work properly if are based on "," as separator or if this scripts measure the length of the data in order to understand if are floats, vectors, quaternions and so on.

I've tried to solve both problems.
TagsNo tags attached.
Git Revision or version number0.8
Run ModeStandalone (1 Region)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux32
Mono Version2.10
Viewer
Attached Files? file icon some.patch2 [^] (10,926 bytes) 2014-07-12 09:52

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-07-12 09:52 marcus73 core New Issue
2014-07-12 09:52 marcus73 core File Added: some.patch2
2014-07-12 11:25 marcus73 core Description Updated View Revisions
2014-07-12 11:25 marcus73 core Additional Information Updated View Revisions
2014-07-12 11:27 marcus73 core Steps to Reproduce Updated View Revisions
2014-07-12 11:28 marcus73 core Summary Problem about international settings of data, numbers, currency => Problem about international settings for dates, numbers, currency
2014-07-13 07:43 marcus73 core Steps to Reproduce Updated View Revisions
2014-07-13 09:27 marcus73 core Physics Engine BasicPhysics => BulletSim
2014-07-13 09:27 marcus73 core Description Updated View Revisions
2014-07-13 09:27 marcus73 core Additional Information Updated View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker