Skip to content

haxe.Utf8 truncates characters above U+FFFF #107

Closed

Description

@dimensionscape

haxe.Utf8 stores each code point in one UTF-16 unit (ptr[i] = base[i] in src/String.cpp), so addChar(0x1F600) keeps only F600. Without smart strings the conversion is also passed the whole array length rather than the requested range, so it reads past the end.

Activity

  1. added 2 commits that reference this issue on Oct 15, 2026
    95a7069
    ce0e564
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions