lua-users home
lua-l archive

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



On Feb 20, 2014, at 20:52 , Roberto Ierusalimschy wrote:

What exactly would be "this inconvenience"?

Silently loosing data when reading a stream?

You finished your message complaining something about "chop behavior",
so I thought you were talking about something else.

(BTW, I think your implementation still cannot handle embedded '0x0A's
in lines :)

You mean \r?

Why? Do nothing to them, just like before? Whatever the system C library does to them we pass it along until the newline (usually \n) split from the C library. Nothing special on top of that, just that my patch make sure all the C library returns ends up in the Lua string.

What do I miss?

-- 
 ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin
 http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de