Array#pack vs Tiger defeats ruby-growl

Eric Hodel | Tue, 15 Nov 2005 05:53:00 GMT

Posted in ,

Tiger’s Ruby thinks its running on an x86, so I had to release ruby-growl 1.0.1.

The meat of the change was

pack_format.gsub!(/n/, 'v') if BROKEN_PACK
where
BROKEN_PACK = [1].pack("n") != "\000\001"

Thanks to Aslak Hellesoy for bringing this up, I’ve been running my own Ruby and only using ruby-growl from a FreeBSD box so never would have known it was broken.

Comments are disabled