<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>21713</bug_id>
          
          <creation_ts>2003-05-26 11:22 0000</creation_ts>
          <short_desc>GNU Awk 3.1.2 bug with multiline records</short_desc>
          <delta_ts>2003-06-23 16:20:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>j+gentoo@salmi.ch</reporter>
          <assigned_to>lostlogic@gentoo.org</assigned_to>
          <cc>azarah@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-05-26 11:22:32 0000</bug_when>
            <thetext>GNU Awk 3.1.2 has problems when parsing multiline records. see &quot;Steps to
Reproduce&quot; for details.

Reproducible: Always
Steps to Reproduce:
$ od -c data
0000000   a  \n  \n   b  \n  \n   c  \n
0000010
$ cat pr.awk
BEGIN { RS = &quot;&quot; }
{ printf(&quot;%d: %s\n&quot;, NR, $0) }
END { print NR }
$ cat data | awk -f pr.awk
1: a
2: b
2
Actual Results:  
the last record (#3, containing &apos;c&apos;) is not printed

Expected Results:  
record #3 should be printed...

i sent a bug report regarding this problem to bug-gawk@gnu.org. stepan kasal
sent me a patch which fixes the problem. it&apos;s available from
http://www.math.cas.cz/~kasal/gawk/gawk-3.1.2-rsnull2d.patch.gz

i&apos;m not sure wether any of the core utilities depend on multiline records or
not, so i file this report with severity &quot;major&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-05-27 09:08:08 0000</bug_when>
            <thetext>arnold robbins - the maintainer and developer of gnu awk - said (regarding the multiline records problem):

  &quot;This bug is only in 3.1.2, it is a bug. For now, the solution is to move       
   back to 3.1.1.  I am working on 3.1.3 and hope to release it &quot;soon&quot;,           
   which will fix the problem.&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lostlogic@gentoo.org</who>
            <bug_when>2003-05-31 22:47:28 0000</bug_when>
            <thetext>Az: think we should back down the stable version and wait for 3.1.3?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-06-01 09:49:33 0000</bug_when>
            <thetext>yes.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lostlogic@gentoo.org</who>
            <bug_when>2003-06-08 15:53:42 0000</bug_when>
            <thetext>marked unstable.  Will wait for 3.1.3 for a new stable gawk.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-06-23 01:22:00 0000</bug_when>
            <thetext>And now it&apos;s marked stable again, still containing the bug... ???</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-06-23 13:14:45 0000</bug_when>
            <thetext>Apply patch or mask again ?  Maybe do a new revision of 3.1.1 afterwards ?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j+gentoo@salmi.ch</who>
            <bug_when>2003-06-23 14:32:40 0000</bug_when>
            <thetext>I&apos;d mask it again, because of Arnold Robbins statement. But I&apos;m not sure if no other packages depend on functionality added to Awk between 3.1.1 and 3.1.2...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-06-23 16:20:37 0000</bug_when>
            <thetext>Nope, latest revision 3.1.1 have filefuncs.so in.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>