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

UTF8 functions dosn't work properly



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

utf8.charpattern
-> 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

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

utf8.len
-> works (or using ZoUTF8StringLength())

utf8.codes
-> 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.

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



Ingame ticket# 200417-003814
__________________
EU Server - SŁĄuGhTerHĜuSe

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