Skip to content

Scripts, and possibly notecards, are being saved with CRLF line endings #5

Description

@kf6kjg

From @kf6kjg on February 27, 2018 3:46

This causes a SL script incompatibility.

Consider the following script:

string str = "Halo
Whirld";

default {
    state_entry() {
        llOwnerSay(str);
        list dat = llParseStringKeepNulls(str, ["\n"], []);
        llOwnerSay("First word has " + (string)llStringLength(llList2String(dat, 0)) + " chars");
        llOwnerSay("Second word has " + (string)llStringLength(llList2String(dat, 1)) + " chars");
    }
}

In IW Halcyon 0.9.37.6622 the output is thus:

Halo
Whirld
First word has 5 chars
Second word has 6 chars

In SL Second Life Server 18.01.17.511913 the output is thus:

Halo
Whirld
First word has 4 chars
Second word has 6 chars

Copied from original issue: IslandzVW/halcyon#424

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

    secondlife-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