lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Hello

Thank you Luiz, Mike.

The key is the division of the problem in two calls.
This works very well (on Linux):

$ lua script.lua

---- script.lua follows ----
-- file with pure ASCII chars
os.setlocale(os.getenv("LC_CTYPE") or os.getenv("LC_ALL"), "ctype")

dofile "script1.lua"
------------------------------

---- script1.lua follows -----
í = 1
print(í)
------------------------------


Manel