lua-users home
lua-l archive

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


add it back yourself may be ?

--- On Wed, 1/27/10, Valerio Schiavoni <valerio.schiavoni@gmail.com> wrote:

> From: Valerio Schiavoni <valerio.schiavoni@gmail.com>
> Subject: About luasocket and receive(..) patterns
> To: "Lua list" <lua@bazar2.conectiva.com.br>
> Date: Wednesday, January 27, 2010, 10:39 PM
> Hello,
> i would like to receive a single line from a socket, but
> without \n or
> \r removed.
> In particular, from the doc it says:
> 
> *l': reads a line of text from the socket. The line is
> terminated by a
> LF character (ASCII 10), optionally preceded by a CR
> character (ASCII
> 13). The CR and LF characters are not included in the
> returned line.
> In fact, all CR characters are ignored by the pattern.
> This is the
> default pattern;
> 
> Nevertheless, i would like those characters not to be
> ignored. Any idea ?
> 
> Thanks,
> valerio
>