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

Perl write/readDouble assumes little-endian platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.7
    • 0.7
    • Perl - Library
    • Any big-endian system such as PPC Mac, Sparc, etc.

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: