Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 61317 - gawk is too fuzyy with --non-decimal-data
gawk is too fuzyy with --non-decimal-data
Product: Red Hat Linux
Classification: Retired
Component: gawk (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-03-17 12:46 EST by Ulrich Drepper
Modified: 2007-04-18 12:40 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-03-17 12:46:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to treat 0x as text (360 bytes, patch)
2002-03-17 12:46 EST, Ulrich Drepper
no flags Details | Diff

  None (edit)
Description Ulrich Drepper 2002-03-17 12:46:10 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020315

Description of problem:
If the --non-decimal-data option is used and gawk sees "0x" in the input it
flags an error.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.echo "0x" | gawk-3.1.0 --non-decimal-data '{print 0+$1}'

Actual Results:  gawk-3.1.0: builtin.c:2281: nondec2awknum: Assertion `len > 2'

Expected Results:  "0x" should be treated like text.

Additional info:

I'll attach a patch soon which is similar to what will be in the next official
version of gawk.
Comment 1 Ulrich Drepper 2002-03-17 12:46:55 EST
Created attachment 48805 [details]
Patch to treat 0x as text
Comment 2 Florian La Roche 2002-03-17 13:02:12 EST
Patch added to 3.0.4-4.


Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.