Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1171

Perl write/readDouble assumes little-endian platform

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: Perl - Library
    • Labels:
    • Environment:

      Any big-endian system such as PPC Mac, Sparc, etc.

    • Patch Info:
      Patch Available

      Description

      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.

        Attachments

        1. perl-big-endian-double.patch
          1 kB
          Andy Grundman

          Activity

            People

            • Assignee:
              andy@hybridized.org Andy Grundman
              Reporter:
              andy@hybridized.org Andy Grundman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: