[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Patching Lua to handle different code pages
- From: David Crayford <dcrayford@...>
- Date: Sat, 22 Mar 2014 00:05:14 +0800
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?