lua-users home
lua-l archive

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


> Just a remark: for UTF-8, the way Lua uses strlen, strcat, strcpy, etc.
> is OK, as UTF-8 strings cannot contain zeros.

The null character ('\0' in C) is represented in Unicode as a single, zero 
byte. Will Lua handle this case correctly, since I think it permits strings 
with '\0' in them? However as you state, UTF-8 does not permit a zero byte in 
any other circumstance.

Steven Murdoch.