lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-02-17 17:51 GMT+02:00 René Rebe <rene@exactcode.de>:
> May I suggest replacing the call to fgets in src/liolib.c so that we can
> read lines with \0 data?

I vote against the proposaI that io.lines() should accept \0 as just
another data character.

There may well be programs out there where programmers are
using the convention that \0 causes the remainder of the line to be
ignored.