Re: Feature request: "u" option to file:read
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Feature request: "u" option to file:read
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2018年2月23日 11:46:13 -0300
> "u": reads one or more bytes forming one UTF-8 character, and returns
> that character as a string. Returns nil if the file at the current
> position does not start with a valid UTF-8 sequence.
Can this be done without having to unget more than one byte from the stream?