From: Gavin Kistner Date: 2005-05-24T22:59:17+09:00 Subject: Re: Endian packing errors. --Apple-Mail-1--950495792 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On May 24, 2005, at 7:40 AM, Brian Mitchell wrote: > On 5/24/05, Gavin Kistner wrote: >> On May 23, 2005, at 11:53 AM, Brian Mitchell wrote: >>> I have a number I must convert to a network long. I have been using >>> this thus far with success: >> Not reproducible by me. MacOS 10.4.1 on a 1GHz Powerbook > I this using the ruby that comes with 10.4, a custom build, or > something else? Ah, there's the rub. Yes, this was with a custom build of ruby, not the default Tiger install. I have both installed, and there you can see the discrepancy clearly: [Slim:~] gavinkis% /usr/bin/ruby -v ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] [Slim:~] gavinkis% /usr/bin/ruby pack.rb "A\000\000\000" [Slim:~] gavinkis% /usr/local/bin/ruby -v ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0.0] [Slim:~] gavinkis% /usr/local/bin/ruby pack.rb "\000\000\000A" --Apple-Mail-1--950495792--