GNU bug report logs - #41518
Bug in od?

Previous Next

Package: coreutils;

Reported by: Yuan Cao <yuancao85 <at> gmail.com>

Date: Mon, 25 May 2020 05:56:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yuan Cao <yuancao85 <at> gmail.com>
To: coreutils <at> gnu.org, bug-coreutils <at> gnu.org
Subject: Bug in od?
Date: Sun, 24 May 2020 23:05:16 -0400
[Message part 1 (text/plain, inline)]
Hello,

I recently came across the following behavior.

When using "--traditional x2" or "-x" option, it seems the order of hex
code output for the characters is pairwise reversed (if that's the correct
way of describing it).

For example, using "od -cx" on a test file that contains "123456789\n", you
get the following output:

0000000   1   2   3   4   5   6   7   8   9   0  \n
                 3231  3433  3635  3837  3039  000a
0000013

It seems like it should be the following instead:

0000000   1   2   3   4   5   6   7   8   9   0  \n
                 3132  3334  3536  3738  3930  0a00
0000013

The version involved is od in GNU coreutils 8.28.

Best Regards,

Yuan
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.