|
|
||
|
One of the API's in Lua that I think might solve at least the wchar_t -> char problem is the luaL_Buffer setup [1]. I envision that you would take your wchar_t and execute a function in a setup like this:The biggest issue I have is that converting char <-> wchar_t requires memory buffers for the conversion. I can obtain these in a number of ways (the lua allocator, creating userdata objects, etc) but I need to manage the lifetime of the buffers
I'd hope that some sort of _convert_ API exists like that....
[1] http://www.lua.org/manual/5.1/manual.html#luaL_Buffer