bug-gawk
[Top][All Lists]
Advanced

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

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


From: Paavo Tamminen
Subject: [bug-gawk] gawk stops reading input at SUB character
Date: Tue, 12 Sep 2017 17:58:51 +0300

Hi
I have successfully used gawk with mixed text--and-binary content.

However, I ran into problem as gawk stops reading the input file if there is a <SUB> character in the file. The character <SUB> is a control character 'substitute', x1A in hex.

input file (test.txt:) has three lines with <SUB> at line two:
line 1 aA
line 2 b<SUB>B
line 3 cC


On windows cmd-promt the following shows output only to the up to character b. So <SUB> seems to be treated as an end of file.

gawk.exe "{print $0}" test.txt
line 1 aA
line 2 b

gawk.exe --version
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.0-p8, GNU MP 5.0.2)

My gawk (gawk-4.1.4-w32-bin.zip) is loaded fromĀ  https://sourceforge.net/projects/ezwinports/

Best regards,
Paavo


reply via email to

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