[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formatting bug in od -tfD

From: Eric Backus
Subject: Formatting bug in od -tfD
Date: Tue, 7 May 2002 14:24:22 -0700

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]