On Wed, Jul 22, 2009 at 11:26 AM, Bulat Ziganshin wrote:
Hello Thomas,
Wednesday, July 22, 2009, 6:55:56 PM, you wrote:
> Has anybody come up with solutions? The only reasonably solution I
> can think of is to have 'replacement' APIs at boundaries that
> send/receive certain text from the OS...
i don't understand that you mean by "replacement APIs". i think the
best way is to provide C low-level functions that implements open,
popen, getenv functionality using utf8-encoded strings (internally
converting them to/from utf-16) and use in io/os packages these
functions instead of usual ones
What you've just described /is/ the replacement API I was thinking about.
Has anyone already performed this work (making a 'lightweight' wrapper
for Windows to make Lua operate like this)"?