bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] gawk stops reading input at SUB character


From: Paavo Tamminen
Subject: Re: [bug-gawk] gawk stops reading input at SUB character
Date: Wed, 13 Sep 2017 07:42:42 +0300

Hi All,
And thank you for your quick responses.

Binmode works for me:
gawk.exe 'BEGIN{BINMODE=3};{print $0}' test.txt

I thought the Control-Z would be used to console input (std in) only, but live and learn..

Thanks again,
Paavo



On Tue, Sep 12, 2017 at 9:41 PM, Eli Zaretskii <address@hidden> wrote:
> From: address@hidden
> Date: Tue, 12 Sep 2017 12:18:32 -0600
> Cc: address@hidden
>
> Should binary mode be the default?

No, of course not.  As a native Windows program, Gawk should behave
like all the other native programs which process text.

A ^Z character in the middle of a file on Windows _really_ means it's
a binary file.

(Users who want Gawk on Windows to use binary I/O by default should
use the Cygwin port of Gawk.)


reply via email to

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