Ticket #609 (closed defect: fixed)
ghc-pkg dump encoding
|Reported by:||igloo||Owned by:|
With ghc-126.96.36.19991120, 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.