> this tolower and toupper then of course will operate only on the ASCII chars, these 2 functions leave the non-ascii bytes all untouched (Unicode-UTF8-Charpoints only have bytes in the range 0x80...0xFF, those bytes are NOT touched by toupper / to lower)).
This is not correct. What tolower() and toupper()
do depends on the current locale.
In the spirit of Carthago delenda est, Lua should not support UTF-8 for identifiers.
Cheers,
V.