[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua and UTF-8
- From: "Thomas Harning Jr." <harningt@...>
- Date: Mon, 11 Jan 2010 13:22:22 -0500
On Mon, Jan 11, 2010 at 1:18 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Is there a page (or, perhaps the mailing list post), which describes
>> official and current position of Lua authors on UTF-8 support in Lua
>> core libraries?
>
> Our position is that, in Lua, UTF-8 is better supported by external
> libraries. Note that, except for the string library, all other
> standard libraries in Lua (and the language itself) should work
> without problems in UTF-8.
io.open / etc won't work with UTF-8 (at least in Windows)
... nor will the system environment and execution (popen / execute) tools.
For Windows you need to convert to/from wchar_t <-> UTF-8 at the API
boundaries (fopen using wide character after converting from UTF-8)
--
Thomas Harning Jr.