Re: [9fans] xd bug
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: [9fans] xd bug         

Group: comp.os.plan9 · Group Profile
Author: Russ Cox
Date: Jul 14, 2008 10:28

> 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

The -c and -x formats are not intended to align.
If you want hex codes aligned with characters, use -b.

%% echo ABCD | xd -c -x
0000000 A B C D \n
0 41424344 0a000000
0000005
%%

Russ
no comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
Re: [BUGS] BUG #2685: Wrong charset of server messages on clientmailing.database.pgsql-bugs ·
Bug#404011: Bug#404012: I'm not planning to change z80asm, please let me know if I misunderstood youlinux.debian.bugs.dist ·