lua-users home
lua-l archive

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


Hello Shmuel,

Friday, August 14, 2009, 2:12:32 PM, you wrote:

> Recently I was manipulating wide character strings in a Lua library. 
> Windows API assumes these strings to end with L'\0' which is represented
> as 2 successive zero bytes. The problem is, lua_tolstring guarantees 
> only 1 zero byte at the end (according to the manual):

i think that idea that you may hold utf-16 strings in Lua strings is
wrong by itself. you should make specialized datatype


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com