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

Bug#460918: marked as done (bsdmainutils: [hexdump] swaps bytes when printing in default mode)

Your message dated Mon, 2 Nov 2009 15:20:03 +0100
with message-id <20091102142003.GA21044@feivel.credativ.lan>
and subject line Re: Bug#460918: bsdmainutils: [hexdump] swaps bytes when printing in default mode
has caused the Debian Bug report #460918,
regarding bsdmainutils: [hexdump] swaps bytes when printing in default mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

460918: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460918
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: bsdmainutils
Version: 6.1.7
Severity: normal

hexdump shows swapped bytes when dumping in default mode (no flags). See

  nahuel@serge:~$ echo abcd > /tmp/file
  nahuel@serge:~$ hexdump /tmp/file
  0000000 6261 6463 000a
  nahuel@serge:~$ hexdump -b /tmp/file
  0000000 141 142 143 144 012

In the first dump, the bytes are swapped, in the second one, the output
is correct. 

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages bsdmainutils depends on:
ii  bsdutils                  1:2.13-8       Basic utilities from 4.4BSD-Lite
ii  debianutils               2.28.2         Miscellaneous utilities specific t
ii  libc6                     2.7-5          GNU C Library: Shared libraries
ii  libncurses5               5.6+20071215-1 Shared libraries for terminal hand

bsdmainutils recommends no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
On Thu, Jun 26, 2008 at 12:10:49PM -0300, Nahuel Greco wrote:
> hexdump manpage says nothing about output or input endianness. If this

I'm sorry but this is *not* a problem of using different endianesses, hexdump
does take care of the different kind of systems.

> non homogeneous behaviour is not a bug, please add a note about it in
> the manpage.

The manpage says that it display "... two-byte quantities of input data ..." or
in other words a 16bit word. Now let's see what your data is:

> >  >   0000000 141 142 143 144 012

So the first word in hex is 61 62. Now with your system being little endian
this is the decimal value 25185 or in hex 6261. Yes, this means it reverses the
two bytes but this is exactly what you should expect when reading the first two
bytes as one word.

As I cannot see a bug here I close the report.


Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo/Skype: michaelmeskes, Jabber: meskes@jabber.org
VfL Borussia! Forca Barca! Go SF 49ers! Use: Debian GNU/Linux, PostgreSQL

--- End Message ---

Reply to: