public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 'od -x' output is reversed
@ 2000-09-12 11:46 Timothy Buckelew
  2000-09-13 10:32 ` DJ Delorie
  2000-09-13 11:45 ` Robert Praetorius
  0 siblings, 2 replies; 6+ messages in thread
From: Timothy Buckelew @ 2000-09-12 11:46 UTC (permalink / raw)
  To: cygwin

Greetings!

The output of 'od -x filename' appears to be reversed
character-by-character.
Let's say file 'junk' cpontains '121212'.

In HP/UX  'od -x junk' yields   3132 3132 3132

In cygwin it yields 3231 3231 3231

Any ideas?

cygcheck.out is attached.

System is a recent beta (about 2 months old) on Windows 98.

Thanks very much.

timothy.buckelew@noaa.gov



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 'od -x' output is reversed
  2000-09-12 11:46 'od -x' output is reversed Timothy Buckelew
@ 2000-09-13 10:32 ` DJ Delorie
  2000-09-13 11:45 ` Robert Praetorius
  1 sibling, 0 replies; 6+ messages in thread
From: DJ Delorie @ 2000-09-13 10:32 UTC (permalink / raw)
  To: Timothy.Buckelew; +Cc: cygwin

> Let's say file 'junk' cpontains '121212'.
> 
> In HP/UX  'od -x junk' yields   3132 3132 3132
> 
> In cygwin it yields 3231 3231 3231

Good!  That means it's working correctly.  If you have any further
questions, please feel free to ask.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 'od -x' output is reversed
  2000-09-12 11:46 'od -x' output is reversed Timothy Buckelew
  2000-09-13 10:32 ` DJ Delorie
@ 2000-09-13 11:45 ` Robert Praetorius
  2000-09-14  5:04   ` Timothy Buckelew
  1 sibling, 1 reply; 6+ messages in thread
From: Robert Praetorius @ 2000-09-13 11:45 UTC (permalink / raw)
  To: Timothy Buckelew; +Cc: cygwin

> Let's say file 'junk' cpontains '121212'.
> 
> In HP/UX  'od -x junk' yields   3132 3132 3132
> 
> In cygwin it yields 3231 3231 3231
> 
> Any ideas?

     ftp://ftp.isi.edu/in-notes/ien/ien-137.txt.3 ("On Holy Wars and a 
Plea for Peace") has an amusing and authoritative discussion of this 
issue.  It ranks right up there with nl vs. CRLF and particle vs. wave.



----g-i-v-e---m-e---a-r-b-e-r-r-y---o-r---g-i-v-e---m-e---b-a-r-k-s-----
"oncology recapitulates philately" --Mark Maxson    Robert M. Praetorius
"balance, not symmetry" --Mark Stanley         home: rmp@MA.UltraNet.Com
(attribution by Stigler)                  work: RPraetorius@AspenRes.Com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 'od -x' output is reversed
  2000-09-13 11:45 ` Robert Praetorius
@ 2000-09-14  5:04   ` Timothy Buckelew
  0 siblings, 0 replies; 6+ messages in thread
From: Timothy Buckelew @ 2000-09-14  5:04 UTC (permalink / raw)
  To: RPraetorius; +Cc: cygwin

oRebtr,

hTnaskf roy uw rponioi nna dht eraitlc.e

oLsto  fowdr.s

lA l Iawtn i  sof rdot  oahevc noistsne tuopttu
.

iTm


Robert Praetorius wrote:

> > Let's say file 'junk' cpontains '121212'.
> >
> > In HP/UX  'od -x junk' yields   3132 3132 3132
> >
> > In cygwin it yields 3231 3231 3231
> >
> > Any ideas?
>
>      ftp://ftp.isi.edu/in-notes/ien/ien-137.txt.3 ("On Holy Wars and a
> Plea for Peace") has an amusing and authoritative discussion of this
> issue.  It ranks right up there with nl vs. CRLF and particle vs. wave.
>
> ----g-i-v-e---m-e---a-r-b-e-r-r-y---o-r---g-i-v-e---m-e---b-a-r-k-s-----
> "oncology recapitulates philately" --Mark Maxson    Robert M. Praetorius
> "balance, not symmetry" --Mark Stanley         home: rmp@MA.UltraNet.Com
> (attribution by Stigler)                  work: RPraetorius@AspenRes.Com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 'od -x' output is reversed
@ 2000-09-12 12:42 Bernard Dautrevaux
  0 siblings, 0 replies; 6+ messages in thread
From: Bernard Dautrevaux @ 2000-09-12 12:42 UTC (permalink / raw)
  To: 'Timothy Buckelew', cygwin

No problem:

As your od output proves, HP-PA is big-endian while ix86 is little-endian
:-)

If you ask od to dump by bytes, (od -b) you'll get the same result in both
cases.

HTH

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

> -----Original Message-----
> From: Timothy Buckelew [ mailto:Timothy.Buckelew@noaa.gov ]
> Sent: Tuesday, September 12, 2000 8:46 PM
> To: cygwin@sourceware.cygnus.com
> Subject: 'od -x' output is reversed
> 
> 
> Greetings!
> 
> The output of 'od -x filename' appears to be reversed
> character-by-character.
> Let's say file 'junk' cpontains '121212'.
> 
> In HP/UX  'od -x junk' yields   3132 3132 3132
> 
> In cygwin it yields 3231 3231 3231
> 
> Any ideas?
> 
> cygcheck.out is attached.
> 
> System is a recent beta (about 2 months old) on Windows 98.
> 
> Thanks very much.
> 
> timothy.buckelew@noaa.gov
> 
> 
> 
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 'od -x' output is reversed
@ 2000-09-12 12:11 Harold Hunt
  0 siblings, 0 replies; 6+ messages in thread
From: Harold Hunt @ 2000-09-12 12:11 UTC (permalink / raw)
  To: 'Timothy Buckelew', cygwin

Is the HP/UX machine big-endian or little-endian?  Rather, what type of
processor does it have?

-----Original Message-----
From: Timothy Buckelew [ mailto:Timothy.Buckelew@noaa.gov ]
Sent: Tuesday, September 12, 2000 2:46 PM
To: cygwin@sourceware.cygnus.com
Subject: 'od -x' output is reversed

Greetings!

The output of 'od -x filename' appears to be reversed
character-by-character.
Let's say file 'junk' cpontains '121212'.

In HP/UX  'od -x junk' yields   3132 3132 3132

In cygwin it yields 3231 3231 3231

Any ideas?

cygcheck.out is attached.

System is a recent beta (about 2 months old) on Windows 98.

Thanks very much.

timothy.buckelew@noaa.gov



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-09-14  5:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-12 11:46 'od -x' output is reversed Timothy Buckelew
2000-09-13 10:32 ` DJ Delorie
2000-09-13 11:45 ` Robert Praetorius
2000-09-14  5:04   ` Timothy Buckelew
2000-09-12 12:11 Harold Hunt
2000-09-12 12:42 Bernard Dautrevaux

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 read-only IMAP folder(s) and NNTP newsgroup(s).