Perl write/readDouble assumes little-endian platform
----------------------------------------------------
Key: THRIFT-1171
URL: https://issues.apache.org/jira/browse/THRIFT-1171
Project: Thrift
Issue Type: Bug
Components: Perl - Library
Affects Versions: 0.9
Environment: Any big-endian system such as PPC Mac, Sparc, etc.
Reporter: Andy Grundman
Priority: Critical
Attachments: perl-big-endian-double.patch
The code for handling doubles uses pack 'd' (pack to native byte order) and
then reverses the bytes. This works on little-endian systems but will produce
backwards data on big-endian systems. Patch is attached.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira