Formatting bug in od -tfD

"Eric Backus" <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Organization Agilent Technologies
Message-ID <[email protected]>
echo | od -tfF
    -> two values printed, should only be one
echo 0123456789012345678901234567890 | od -tfD
    -> prints a value only every 12 input characters
echo 0123456789012345678901234567890 | od -tfL
    -> Floating point exception

od --version
    -> textutils 2.0.14

This is on Linux 2.4.9-31 (stock RedHat 7.2) running on a Pentium III.


A quick examination of src/od.c shows a likely cause of these problems: enum
size_spec has an entry for "long long", but the width_bytes array is missing
the corresponding "long long" entry.  I'm guessing this has probably been
there since support for "long long" was added at around 2.0.8, and not
noticed since few people use od to dump floating-point values.

--
Eric Backus
R&D Design Engineer
Agilent Technologies, Inc.
425-335-2495 Tel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.