Skip to content

Unicode Strings cannot handle high-plane characters #9

@HalosGhost

Description

@HalosGhost

This may very well be due to how tcl handles strings underneath L.

Here is an initial PoC:

#!/usr/bin/L

puts("🐼");

Running the above file produces the following output:

ð¼

That is, characters with UTF-32 codepoints beyond 0xffff are out-of-range and are not displayed correctly.

It seems like this might be because tcl appears to use UTF-16 (or what it refers to as “double-byte” representation) internally.

As a result, anything high-plane is quite difficult to do in L.

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