IslandzVW / halcyon

InWorldz Halcyon 3d virtual reality world simulator
BSD 3-Clause "New" or "Revised" License
21 stars 26 forks source link

Scripts embed carriage returns into multiline strings only on Windows #453

Closed kf6kjg closed 6 years ago

kf6kjg commented 6 years ago

In general all the Windows-hosted Halcyon instances embed "\r\n" as the end of line for every script and notecard. Linux-based Halcyon instances only embed "\n" from what I remember of my testing a few months ago.

Most of the time this isn't noticed. However when self-serving MOAP with multiline strings, and combined with issue #452, this becomes a blocker. Even if #452 was fixed it's still a significant difference from SL where it's always and only "\n".

default
{
    state_entry()
    {
        string a = "
a";

        integer l = llStringLength(a);
        llOwnerSay("string length " + (string) l);

        integer i;
        for (i = 0; i < l; ++i) {
            llOwnerSay(llDumpList2String(["char(", i, ") = ", iwChar2Int(a, i)], ""));
        }
    }
}

IW output:

string length 3
char(0) = 13
char(1) = 10
char(2) = 97
kf6kjg commented 6 years ago

And just realized this is basically the same as #424. :P

kf6kjg commented 6 years ago

This issue was moved to HalcyonGrid/halcyon#3