Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/17/20, 08:34 AM   #1
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
[open] utf8.char() game crash

UTF8 functions dosn't work properly

-> works "/script d(utf8.codepoint("Г"))" == 1043

-> doesn't work properly "/script local str = "TЖ" for w in str:gmatch(utf8.charpattern) do d(w) end" == "T" and ignores the other char

-> works "/script d(utf8.offset("Test", 1, 4))" == 4

-> works (or using ZoUTF8StringLength())
-> doesn't work, returns: Attempt to access a private function 'anonymous' from insecure code. The callstack became untrusted 1 stack frame(s) from the top.

-> "/script d(utf8.char(1043))" CRASH

Ingame ticket# 200417-003814

Last edited by Scootworks : 04/17/20 at 09:20 AM. Reason: added examples
  Reply With Quote

ESOUI » Developer Discussions » Bug Reports » [open] utf8.char() game crash

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off