textutils.unserialiseJSON() doesn't work with ä,ö,ü and ß
JakobDev opened this issue · 2 comments
textutils.unserialiseJSON() gives a Unescaped whitespace error, if you use ä,ö,ü or ß in a string. Example:
textutils.unserialiseJSON('["äöüß"]')
Oh boy, this one is fun. This is a bug in Cobalt's string comparison:
> string.char(127) >= '\0'
true
> string.char(128) >= '\0'
true -- PUC Lua
false -- Cobalt
It appears the comparison code incorrectly assumes Java's bytes are unsigned: