Skip to content

FluffOS giving error (sometimes) when assigning Unicode sequence to a string  #867

@gesslar

Description

@gesslar

This kind of works, except it eats the \n at the end

int cmd_uni()
{
    object tp = this_player() ;
    string mess = "" ;

    mess += "\u2501\n" ;

    write(mess) ;
    say(mess) ;

    return 1 ;
}

image

This is not consistent, however, since in other cases, it gives the error Illegal unicode sequence.

Tracked down to lex.cc -

lexerror("Illegal unicode sequence.");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions