Skip to content

Spanning algorithm assumes all codepoints have width equal to 1 #28899

Closed
@nagisa

Description

@nagisa
/tmp/test.rs:2:23: 2:23 error: invalid unicode character escape
/tmp/test.rs:2     let a = "きききききき\u{}";
                                     ^
/tmp/test.rs:3:37: 3:37 error: invalid unicode character escape
/tmp/test.rs:3     let a = "ōōōōōōōōōō\u{}";
                                                   ^
error: aborting due to 2 previous errors

the first example has several codepoints that occupy space of more than one regular ASCII character and 2nd example has several codepoints that occupy no space (combining characters).

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