From: Heesob Park Date: 2008-12-19T14:02:41+09:00 Subject: Re: How to check endianess using ruby? Hi, 2008/12/19 Xie Hanjian : > Hi, > > What's the right way to check the endianess(big/little endian) of the machine > on which the ruby code run? > [1].pack('S')[0]==1 ? 'little' : 'big' Regards, Park Heesob