Hi,
Could someone verify the incorrect values for Array#pack(‘S’) and
Array#pack(‘n’) I’m getting on my OS X? See below, and thanks!
Barry
···
On Win98:
C:\WINDOWS>ruby -v
ruby 1.6.7 (2002-03-01) [i586-mswin32]
irb(main):001:0> [65].pack(‘S’)
“A\000"
irb(main):002:0> [65].pack(‘v’)
“A\000"
irb(main):003:0> [65].pack(‘n’)
”\000A”
On OS X:
bash-2.05a$ ruby -v
ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0]
irb(main):001:0> [65].pack(‘S’)
"\000A"
irb(main):002:0> [65].pack(‘v’)
"\000A"
irb(main):003:0> [65].pack(‘n’)
"\000A"
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus