Skip to content

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

Description

@kf6kjg

From @kf6kjg on May 23, 2018 20:13

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

Copied from original issue: IslandzVW/halcyon#453

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross platformIssues about cross platform operationssecondlife-compatIssues that are only due to discovered differences between Halcyon and SecondLife

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions