[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Unicode
- From: RLake@...
- Date: Fri, 24 May 2002 09:15:23 -0500
> Any thought for doing generic string type support, like numbers with
> the LUA_NUMBER?
> It would be nice to have (the option of) a Unicode version without
> having to muck with the Lua source all over the place.
IMHO, Unicode is much more complicated than a simple "byte" string. And it
is very useful that
Lua provides simple "byte" strings. AFAIK Lua should work with "bytes"
which are bigger than
eight bits, and that for me is adequate. I'd like to see Unicode support,
yes, but as something
built on top of strings, not as a replacement.
Actually, I'd like to see strings be real octet strings; that way one could
Unicode handling in Lua itself; as well as being able to parse and generate
files. The option of "multibyte" strings could also be implemented as
Unicode, however, is much more than string manipulation. Note, for example,
concatenation is not closed on normalised Unicode strings; proper support
such idiosyncracies is a higher-level function.