[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io:lines() and \0
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 21 Feb 2014 08:21:03 +0200
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.