[TxMt] little-endian, ruby, and run script

Dave Baldwin dave.baldwin at 3dlabs.com
Mon Mar 13 13:49:56 UTC 2006


This is a documented problem with the version of Ruby Apple supplied  
with Tiger.  The other main problem with Apple's version of Ruby is  
its inability to support user extensions.


Dave.

On 13 Mar 2006, at 13:19, Albert Vernon Smith wrote:

> I am writing a script to parse a binary file in ruby.  According to  
> the documentation on the file format, the integers are in little- 
> endian format.  When I take the script, read the appropriate part  
> of the file, then 'unpack' with 'V' (little-endian), I don't get  
> the right answer from the internal "Run script" command.  I do get  
> the right answer if I change to unpack with 'N'.  However, if run  
> from the command line against Apple Ruby (/usr/bin/ruby 1.8.2) or  
> against Ruby compiled with DarwinPorts (/opt/local/bin/ruby 1.8.4),  
> I get the appropriate result with 'V' (as I should).
>
> This seems to be a bug to me, though I'm not sure I'm missing  
> something here.  Can someone either confirm this is a bug, or  
> alternatively explain to me why things are behaving in this way.
>
> -albert
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list