lua-users home
lua-l archive

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


I have a requirement to patch the Lua core to handle different code pages. The code pages will mainly be EBCDIC but could be ASCII. I've had a look at the code and it seems that I can hook iconv() calls into luaL_loadfile, LuaL_loadbuffer and LuaL_loadstring in lauxlib.c, which should translate all the source code before it hits the lexer/parser.

Is there a better way of doing it?