FIELDWIDTHS off-by-one error

Bug #44696 reported by Gary Coady
4
Affects Status Importance Assigned to Milestone
gawk (Debian)
Fix Released
Unknown
gawk (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

See
http://lists.gnu.org/archive/html/bug-gnu-utils/2005-10/msg00024.html

$ echo "a b b" | awk 'BEGIN {FIELDWIDTHS = "1 1 1 "} {print NF}'
2

The result should be 3.

Revision history for this message
Gary Coady (garycoady) wrote : Patch to fix issue

This fixes the reported issue (patch from upstream).

sam tygier (samtygier)
Changed in gawk:
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

To get your fix included in Ubuntu, try transforming it into a debdiff (http://wiki.ubuntu.com/PackagingGuide/Recipes/Debdiff) and submitting it for review (http://wiki.ubuntu.com/SponsorshipProcess).

Changed in gawk:
status: Confirmed → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

this is fixed in 3.1.5 in gutsy.

Changed in gawk:
status: Incomplete → Fix Released
Changed in gawk:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.