[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion: handle utf-8 filename in windows
- From: Sean Conner <sean@...>
- Date: Wed, 25 Oct 2017 17:38:22 -0400
It was thus said that the Great dyngeccetor8 once stated:
> On 10/25/2017 09:23 PM, Egor Skriptunoff wrote:
> > But maybe someday Lua would become UTF-8-only language...
> ...
> > Such UTF-8-only language would have some disadvantages:
> > 5) All operations listed above would fail or generate exception on invalid UTF-8
> > strings.
> > 6) There would be no byte strings in Lua, but many users want something like
> > "mutable byte arrays".
>
> Probably we can introduce new type "byte_string" for strings like '\0xD8'.
> Similarly as Lua 5.3 "integer" and "float" subtypes for type "number".
That was done between Python 2 and Python 3 and it has caused all sorts of
pain---enough that not everyone migrated to Python 3.
In the case of Lua, it would most likely hurt in the parsing of network
packets and some binary file formats (with embedded strings).
-spc