Robert Evans <robert.evans / acm.org> writes:

> I have written some code that reads bytes from a file in bigendian  
> order (the file was written in big-endian order). It works fine on  
> unix, but on windows it dies when it encounters 1a, also known as 26  
> also known as ctrl-z also known as an eof character in dos. This  
> causes the read to stop. Is this a known bug? Is something else going  
> on here?

  Try to open file with "rb" option i.e. File.open("foobar", "rb").

 - Ville