Skip to content

Polyfill utf8.char#19

Open
Validark wants to merge 2 commits intoandremm:mainfrom
Validark:patch-1
Open

Polyfill utf8.char#19
Validark wants to merge 2 commits intoandremm:mainfrom
Validark:patch-1

Conversation

@Validark
Copy link
Copy Markdown

@Validark Validark commented Jul 8, 2022

No description provided.

@Validark
Copy link
Copy Markdown
Author

It's pretty easy to verify this is the correct implementation btw. Just run this for all possible inputs in Lua 5.4 (and make it so utf8_char is always the custom version):

for i = 0, 1114111 do
    assert(utf8_char(i) == utf8.char(i))
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant