lua-users home
lua-l archive

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


>  You need to modify Lua sources to do that?  Just add an entry to
> package.loaders to scan a ZIP file for modules.

You are right. The fact is that I was not aware of the package.loaders
feature at the time I needed the special loading.

Anyway, let's take another example.
I currently would like to pass UTF-8 encoded path names on Windows.
That concerns at least loadfile, dofile, require, os.execute,
os.rename, os.remove, os.tmpname, io.open, io.input, io.output,
io.lines and io.popen.
What would be the best solution on current Lua ? Is it to rewrite all
those functions?
Probably could it be much easier if there is a well designed common
virtualization layer.