|
On Feb 20, 2014, at 20:29 , Cezary H. Noweta wrote:
The discussion is about lines(), that it using fgets is just an implementation detail. If Roberto would not kind of implied performance loss is not that acceptable with his bible test case then a fgetc() look without all this troubles would have been very fine for me, too. I can certainly give up improving vanilla Lua and convincing some that random data loss is usually considered a bug, and live very happily with the fix that works for me just fine. Have fun parsing MIME, CGI data, or financial programs exports using \0 field delimiters. Or wherever a zero comes along. -- ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de |