9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] xd bug
Date: Mon, 14 Jul 2008 13:13:05 -0400	[thread overview]
Message-ID: <712ce05eb740e24030d816ec65f3fa45@quanstro.net> (raw)
In-Reply-To: <66A41360-593C-4B12-B33E-04A9C7336CF1@mac.com>

> If you look more closely at the alignment of the characters to the hex
> values you will see that xd thinks Q has character code 0x525 and R
> has character code 3. It should look more like
>
> % xd -c -x bad
> 0000000  e0Q R S  \n
>       0  e0515253 0a000000
> 0000005

-x by itself doesn't output the hex codes
for bytes, it outputs the hex codes for 4 byte
integers.  i think you're thinking of this command
line instead

; xd -c -1x bad
0000000  e0  Q  R  S \n
      0  e0 51 52 53 0a

- erik




  reply	other threads:[~2008-07-14 17:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 21:26 Pietro Gagliardi
2008-07-14 16:43 ` Russ Cox
2008-07-14 17:02   ` Pietro Gagliardi
2008-07-14 17:13     ` erik quanstrom [this message]
2008-07-14 21:10       ` Pietro Gagliardi
2008-07-14 17:22     ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=712ce05eb740e24030d816ec65f3fa45@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).