As you probably know, LuaRT manages character strings natively in UTF8 format.
This feature has a pitfall : breaking compatibility with strings in Lua.
This is the only remaining incompatibility between Lua and LuaRT.
As a result, and after reflection, I remain convinced that this incompatibility is an obstacle to the adoption of LuaRT, as many modules may malfunction, or even not work at all.
I thought of a solution, and I would like your feedback:
LuaRT will use strings in the same way as in standard Lua (a string in Lua is just a container of bytes). All features built into LuaRT will remain preserved (e.g. using UTF8 strings for filenames).
To manipulate strings with UTF8, the letter "w" (for "wide string" ) will need to be prefixed to the functions of the string library:
standard Lua string function ---> UTF8 LuaRT string function
string.find ---> string.wfind
string.gsub ---> string.wgsub
string.gmatch ---> string.wgmatch
string.match ---> string.wmatch
string.sub ---> string.wsub