You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Andy Grundman (JIRA)" <ji...@apache.org> on 2011/05/16 19:37:47 UTC

[jira] [Updated] (THRIFT-1171) Perl write/readDouble assumes little-endian platform

     [ https://issues.apache.org/jira/browse/THRIFT-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Grundman updated THRIFT-1171:
----------------------------------

    Attachment: perl-big-endian-double.patch

Patch against trunk.

> 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
>              Labels: patch
>         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