bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] _gsub issue?


From: Denis Shirokov
Subject: [bug-gawk] _gsub issue?
Date: Fri, 17 Aug 2012 01:33:28 +0300

Hi GAWK.

I write on the GAWK3.x-4.x last 3 years. Respect due to you guys. I'm
intrested about writing some very large scripts. Especially about text
parsing, running subscripts under control higher script, data
migration mechanics between its, etc.

Anyway,
Your Documentation says that if i found some bugs then i can connect
and report to you.
I found a lot of serious troubles in MS GAWK4.0.0.
Here is the latest:

BEGIN{

        a="ABC"
        gsub(/\x1B\x2A/,"\x0A",a)
        
        print a "def" }

Expected:

abcdef


Actual:

A
B
C
def


The gsub func inserts character \x0A between A,B and C like this: \x0A
A \x0A B \x0A C \x0A.
REGEXP \x1B\x2A not present in a.

If You want i can reproduce for you some other troubles like _PROCINFO
in END rule, EXIT in END rule, crash if \x80-\xFF in REGEXP etc.


Also i can advice you some improvements in GAWK.


With the pleasure writing hundred thousands bytes of GAWK-code
Denis Shirokov

Associate QA engineer
Symantec



reply via email to

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