[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Issues: Character 160 - Non-breaking space + Additional Issue with UTF-8
- From: Matthew Wild <mwild1@...>
- Date: Sat, 7 Jul 2018 16:02:07 +0100
On 7 July 2018 at 15:54, Alysson Cunha <email@example.com> wrote:
> I am raising the question: Should the future Lua 5.5 have unicode support?
> Since a lot (a lot a lot) encoding issues were solved with unicode and we
> are observing an international trend for the utf-8 use....
I think you're missing the points that have been raised.
I work with Lua and Unicode every day. My files are UTF-8 encoded.
However the correct space character is 0x20 (32). Other space
characters are not valid according to the language syntax, and
allowing others would be a horrible mess. For example would you also
include zero-width spaces?
Just because there are other space characters available does not mean
Lua needs to accept them. It's similar to making an argument that Lua
should accept 'lõçál' as equivalent to 'local'. The characters are not
the same, even if they are related.