News for hackers. Stuff that matters.
Re:Why Lua? by groovy2shoes on Tuesday January 31, 2012 @06:19PM (#3535732)
Lua strings aren't C-style: they're prefixed with the string length. Lua's strings are suitable enough to store UTF-8 encoded data, but none of Lua's built-in functions are equipped to process it. Unicode libraries don't need to provide a special Unicode string type, they simply need to provide Unicode-aware string processing functions.
Re:Why Lua? by marshray on Tuesday January 31, 2012 @08:23PM (#3536170)
Right. I meant "C-style" in the sense of Lua being oriented around the kind of single/multibyte encodings used with ANSI C (as contrasted with kind of the UCS-2 and UTF-16 stuff you get with Win32 and Java).