Ticket #609 (closed defect: fixed)
ghc-pkg dump encoding
| Reported by: | igloo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Cabal-1.8 |
| Component: | Cabal library | Version: | HEAD |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | unknown | |
| GHC Version: | Platform: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
