help-gawk
[Top][All Lists]
Advanced

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

Re: inconstancy with RS = "(\r?\n){2}"


From: Alex fxmbsw7 Ratchev
Subject: Re: inconstancy with RS = "(\r?\n){2}"
Date: Sun, 25 Jul 2021 14:32:34 +0200

hm where are the changes reflected
in the end i need it from a tcpserver spawn, no tty

On Sun, Jul 25, 2021, 14:27 <arnold@skeeve.com> wrote:

> Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
>
> > i noticed on the terminal variant it processes after couple of \ns more
> > but thats still not good enuff for tcp httpd connections
>
> I think this fixes the issue for terminals.
>
> Arnold
> ----------------------------------------
> diff --git a/io.c b/io.c
> index 91c94d9b..4b38f092 100644
> --- a/io.c
> +++ b/io.c
> @@ -3759,7 +3759,7 @@ again:
>           */
>
>         /* succession of tests is easier to trace in GDB. */
> -       if (RSre->maybe_long) {
> +       if (RSre->maybe_long && (iop->flag & IOP_IS_TTY) == 0) {
>                 char *matchend = iop->off + reend;
>
>                 if (iop->dataend - matchend < RS->stlen)
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]