[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is it possible to add utf-8 lua source file support in lua 5.2?
- From: Rob Kendrick <rjek@...>
- Date: Mon, 27 Sep 2010 19:59:23 +0100
On Mon, Sep 27, 2010 at 09:11:50PM +0400, john gladkih 599133195 wrote:
> On 27.09.2010 14:22, Rob Kendrick 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.
> man rewind
> man fseek
Which doesn't solve the problem for pipes or other non-seekable file
systems. The problem isn't in Lua; don't fix it there.