[GHC] #11262: Test print022: wrong stdout on powerpc64

GHC ghc-devs at haskell.org
Mon Oct 16 23:14:27 UTC 2017


#11262: Test print022: wrong stdout on powerpc64
-------------------------------------+-------------------------------------
        Reporter:  trommler          |                Owner:  trommler
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  GHCi              |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  powerpc64
 Type of failure:  Incorrect result  |            Test Case:  print022
  at runtime                         |
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"d6c33da89b97d0d2a3b3b8f8077de8a09432d086/ghc" d6c33da/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="d6c33da89b97d0d2a3b3b8f8077de8a09432d086"
 RtClosureInspect: Fix inspecting Char# on 64-bit big-endian

 Char# is represented with a full machine word, whereas Char's Storable
 instance uses an Int32, so we can't just treat it like a single-element
 Char array. Instead, read it as an Int and use chr to turn it into a
 Char. This fixes Trac #11262.

 Reviewers: austin, hvr, bgamari

 Reviewed By: bgamari

 Subscribers: rwbarton, thomie

 GHC Trac Issues: #11262

 Differential Revision: https://phabricator.haskell.org/D4089
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11262#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list