Re: Is it possible to add utf-8 lua source file support in lua 5.2?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Is it possible to add utf-8 lua source file support in lua 5.2?
- From: Quae Quack <quae@...>
- Date: 2010年9月27日 20:45:01 +1000
On 27 September 2010 20:22, Rob Kendrick <rjek@rjek.com> wrote:
> On Mon, Sep 27, 2010 at 08:00:32PM +1000, Quae Quack wrote:
>
>> why not use ungetc?
>
> Because Lua is written in C, and C's ungetc is not guarenteed to work
> for more tha one byte.
>
> B.
>
>
Not guaranteed to work, but you can try, checking for EOF.