lua-users home
lua-l archive

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


I am trying to use Lua in a Unicode application, and digging through the
message archives I found the following:

> Starting with 4.1-alpha, the prototypes for the relevant functions are:
> 
> LUA_API int   lua_dofile (lua_State *L, const lua_char *filename);
> LUA_API int   lua_dostring (lua_State *L, const lua_char *str);
> LUA_API int   lua_dobuffer (lua_State *L, const lua_char *buff, size_t size,
> 
> So, lua_char is there for this. Try etc/luser_wchar.h, which defines L_CHAR
> to be wchar_t (lua_char is typedef'd as L_CHAR).

However this certainly doesn't seem the case in 4.1 work 3.  Is this going to
be re-introduced?

Also, will the other functions that currently take "const char *" be updated
for unicode support, such that I can use lua_pushstring() etc with a Unicode
string?

Thanks.

Love, Light and Peace,
- Peter Loveday
eyeon Software