andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:
The module Parse::Flash::Cookie comes with binary test files. These test files are collected from an Intel machine, and are thus little-endian, as described in perlport. These tests using these files obviously fail on big-endian platforms, such as sparc and powerpc.
$ uname -p i686 $ perl -wle 'use Config; print $Config{byteorder}' 1234
For the module's next release, I have a number of options:
Update: Thu Jan 17 08:09:37 CET 2008: almut has confirmed Grandfather's assertion that SOL files are little-endian regardless of platform. almut also points out how to interpret floating point numbers on big-endian platforms. Thank you all very much for answering.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test and endianness
by GrandFather (Saint) on Jan 16, 2008 at 11:00 UTC | |
by andreas1234567 (Vicar) on Jan 16, 2008 at 11:09 UTC | |
by almut (Canon) on Jan 16, 2008 at 14:45 UTC | |
by andreas1234567 (Vicar) on Jan 16, 2008 at 19:05 UTC | |
|
Re: Test and endianness
by BrowserUk (Patriarch) on Jan 16, 2008 at 11:48 UTC | |
by andreas1234567 (Vicar) on Jan 16, 2008 at 13:14 UTC | |
|
Re: Test and endianness
by ikegami (Patriarch) on Jan 16, 2008 at 10:41 UTC | |
|
Re: Test and endianness
by apl (Monsignor) on Jan 16, 2008 at 10:48 UTC | |
by DrHyde (Prior) on Jan 16, 2008 at 11:51 UTC |