Array#pack problem on OS X

Hi,

···

At Sat, 28 Jun 2003 18:33:48 +0900, >Barry Shultz wrote:

ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0]
irb(main):002:0> [65].pack(‘v’)
“\000A”

It’s obviously strange. Is there a line contains
WORD_BIGENDIAN in config.h?

I’m using the compiled version of Ruby that came with OS X; I don’t have a
config.h file.
As soon as I can, I will compile Ruby 1.7.x on it, but I wanted to make sure
that other people using
the loaded version have the same problem.

Barry


MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus

Hi,

ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0]
irb(main):002:0> [65].pack(‘v’)
“\000A”

It’s obviously strange. Is there a line contains
WORD_BIGENDIAN in config.h?

I’m using the compiled version of Ruby that came with OS X; I don’t have a
config.h file.

I’ve heard that there is a package for development, which
contains the file.

As soon as I can, I will compile Ruby 1.7.x on it, but I wanted to make sure

1.7 is already outdated, you’d better to try with 1.8.0 latest
snapshot.

···

At Sat, 28 Jun 2003 20:30:24 +0900, Barry Shultz wrote:


Nobu Nakada