[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_tolstring and wide character strings
- From: Bulat Ziganshin <bulat.ziganshin@...>
- Date: Fri, 14 Aug 2009 14:27:52 +0400
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