Bug#738372: haskell-tasty-golden: FTBFS: hlibrary.setup: dist-ghc/doc/html/tasty-golden/haddock-prolog10834.txt: invalid argument

Chris Lamb lamby at debian.org
Sun Nov 1 18:52:40 UTC 2015


reassign 738372 ghc-haddock
retitle 738372 ghc-haddock: Does not support UTF-8 .cabal files when
LANG=C
thanks

Hi,

Just to summarise and reorganise this issue:

If a .cabal file contains unicode characters in (for example) its
description field and you are not running under a UTF-8 locale, Haddock
will fail to build the documentation:

  [..]

  hlibrary.setup: dist-ghc/doc/html/yi-language/haddock-prolog10907.txt:
  invalid
  argument

  [..]

If you re-run with --keep-temp-files, the file it refers to (eg.
haddock-prolog10907.txt) contains the unicode-containing line:

00000000: 436f 6c6c 6563 7469 6f6e 206f 6620 6c61  Collection of la
00000010: 6e67 7561 6765 2d72 656c 6174 6564 2059  nguage-related Y
00000020: 6920 6c69 6272 6172 6965 733a 206c 6578  i libraries: lex
00000030: 6572 732c 2073 6361 6e6e 6572 73         ers, scanners

In this case, it's a HORIZONTAL ELLIPSIS (U+2026) at the end.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-



More information about the Pkg-haskell-maintainers mailing list