First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 21713
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Brandon Low (RETIRED) <lostlogic@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jukka Salmi <j+gentoo@salmi.ch>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 21713 depends on: Show dependency tree
Bug 21713 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-05-26 11:22 0000
GNU Awk 3.1.2 has problems when parsing multiline records. see "Steps to
Reproduce" 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 = "" }
{ printf("%d: %s\n", NR, $0) }
END { print NR }
$ cat data | awk -f pr.awk
1: a
2: b
2
Actual Results:  
the last record (#3, containing 'c') 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's available from
http://www.math.cas.cz/~kasal/gawk/gawk-3.1.2-rsnull2d.patch.gz

i'm not sure wether any of the core utilities depend on multiline records or
not, so i file this report with severity "major".

------- Comment #1 From Jukka Salmi 2003-05-27 09:08:08 0000 -------
arnold robbins - the maintainer and developer of gnu awk - said (regarding the
multiline records problem):

  "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 "soon",         
   which will fix the problem."

------- Comment #2 From Brandon Low (RETIRED) 2003-05-31 22:47:28 0000 -------
Az: think we should back down the stable version and wait for 3.1.3?

------- Comment #3 From Jukka Salmi 2003-06-01 09:49:33 0000 -------
yes.

------- Comment #4 From Brandon Low (RETIRED) 2003-06-08 15:53:42 0000 -------
marked unstable.  Will wait for 3.1.3 for a new stable gawk.

------- Comment #5 From Jukka Salmi 2003-06-23 01:22:00 0000 -------
And now it's marked stable again, still containing the bug... ???

------- Comment #6 From Martin Schlemmer (RETIRED) 2003-06-23 13:14:45 0000 -------
Apply patch or mask again ?  Maybe do a new revision of 3.1.1 afterwards ?

------- Comment #7 From Jukka Salmi 2003-06-23 14:32:40 0000 -------
I'd mask it again, because of Arnold Robbins statement. But I'm not sure if no
other packages depend on functionality added to Awk between 3.1.1 and 3.1.2...

------- Comment #8 From Martin Schlemmer (RETIRED) 2003-06-23 16:20:37 0000 -------
Nope, latest revision 3.1.1 have filefuncs.so in.

First Last Prev Next    No search results available      Search page      Enter new bug