
#609: ghc-pkg dump encoding ----------------------------+----------------------------------------------- Reporter: igloo | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- With ghc-6.12.0.20091120, `FunctorSalad` on IRC found: {{{ when I try to run some Setup.hs (of any package, apparently), it compiles, but ./Setup configure crashes with: Setup: fd:5: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) *** glibc detected *** ./Setup: double free or corruption (!prev): 0x098953a0 *** }}} As far as I can tell, the problem is that `./Setup` finds `/usr/bin/ghc` which is 6.10.4, and the output of `ghc-pkg dump | hexdump -C` includes: {{{ 00038060 63 6f 70 79 72 69 67 68 74 3a 20 a9 20 32 30 30 |copyright: . 200| }}} i.e. there's a latin-1 copyright symbol 0xA9. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/609 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects