Bug 55258
Summary: | od --width seems to assume sizeof(double)==12 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Robert Dodier <dodier> |
Component: | textutils | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-10-29 01:08:12 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
Robert Dodier
2001-10-28 15:46:21 UTC
OK, I think I found it. There are 2 parallel lists containing type info, size_spec (a list of enums), and width_bytes (a list of sizeofs). width_bytes was missing sizeof(long long), so the placement of the float, double, and long double items was off by 1. The patch shown below fixes the --width problem. BTW I am working with od.c from textutils-2.0.11-7.src.rpm. [root@chromium src]# diff -c od.original od.c *** od.original Sun Oct 28 17:30:11 2001 --- od.c Sun Oct 28 17:46:27 2001 *************** *** 135,140 **** --- 135,141 ---- sizeof (short int), sizeof (int), sizeof (long int), + sizeof (long long), sizeof (float), sizeof (double), sizeof (LONG_DOUBLE) You're right, fixed in 2.0.16-1. |