lua-users home
lua-l archive

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


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).

In the header files maybe, but not in the actual system dll's.
Windows 9x and ME only provide the *A versions.  (A separate "unicode
layer" library must be installed to support the *W versions on those
platforms.)  Windows 3.x only supports the base names (no A or W
extension) for the 8-bit Windows code page versions.

So #undef UNICODE in loadlib.c should solve the problem on all Windows
platforms?

(Side note: Actually, MSDN states

 "In the few places where an application must work with 8-bit character data,
  it can make explicit use of the functions for Windows code pages."

(Taken from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_8zzn.asp)

This suggests to explicitly use the *A functions, but that doesn't
seem to take Win 3.x into account any more.)

--
Wim