[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua for unicode
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 02 Dec 2002 12:16:10 +0000
> As for the core Lua lib, it's mostly string width independent
> I believe, although a quick search across the source produces a
> number of calls to things like strlen in routines like
> lua_pushstring, lua_dostring, luaO_chunkid, luaS_new, and
> luaV_strcomp.
Just a remark: for UTF-8, the way Lua uses strlen, strcat, strcpy, etc.
is OK, as UTF-8 strings cannot contain zeros. The only dependency in the
core is `strcoll' (used in luaV_strcmp to order strings).
-- Roberto