Bug 64590

Summary: od "-t f8 --width 8" insists on width = 12
Product: [Retired] Red Hat Linux Reporter: Tony Kocurko <akocurko>
Component: textutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-26 02:03:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tony Kocurko 2002-05-08 13:04:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13 i686)

Description of problem:
Either "-t f8" or "--format=f8" used with the "od" command results in
od claiming that the format size is invalid and insists on using 12
bytes per double rather than 8.

Solved. Change lines 137 and 138 of od.c from this:

sizeof (long int),
sizeof (float),

to this:

sizeof (long int),
sizeof (long long),
sizeof (float),

  I have already sent this problem and its solution along to
bug-textutils.

Cheers,
Tony Kocurko
Memorial University of Newfoundland
Department of Earth Sciences
Alexander Murray Building - Room ER-4063
Memorial University of Newfoundland
St. John's, Newfoundland
Canada     A1B 3X5


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


How reproducible:
Always

Steps to Reproduce:
1. od -t f8 --width 8 any_file_at_all 2>&1 | more
2. Look for "warning: invalid width 8; using 12 instead"
3.
	

Actual Results:  See step 2., above. Also, the address-radix increment is
(decimal)12
instead of 8.

Expected Results:  Doubles should have been dumped.

Additional info:

The bug is solved with the fix mentioned above.

Comment 1 Tim Waugh 2002-10-07 11:32:28 UTC
Seems to be fixed in textutils-2.0.21-5.