lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
>> IMHO it makes sense to apply the above mentioned changes in
>> loadlib.c. Unconditionally that is, because the *W variants cannot
>> ever work, given the surrounding code.
> 
> What about Win's proposal of undef UNICODE?

Undefining UNICODE in luaconf.h may be problematic for applications
including Lua but that otherwise use Unicode API calls. I think using
the *A variants of the win32 API in Lua is the solution with the least
negative impact. As said before the A/W variants of the win32 api exist
for a long time (win95, maybe even before) and are very consistent
(afaik all API that deal with strings have both variants available). The
bigger drawback is that it would break Lua compilation on Windows 3.xx.