-
Notifications
You must be signed in to change notification settings - Fork 239
haddock crashes building documentation for text #573
Comments
Could it be the locale is not UTF8 but the comment contains such? |
I'm seeing the same error with Deque-0.2 using
|
@domenkozar |
As far as I understand it, the issue is similar to others, e.g. sol/markdown-unlit#8 and the right way to resolve it is to set |
@domenkozar Which version of haddock did you use? I just tried building the documentation using haddock-2.18.1 and it worked with |
What @Fuuzetsu suggest fixes the issue, haddock fails to build with LANG=C |
What @kirelagin suggests is sensible for the future. Using shell env to determine filesystem encoding is one of the craziest ideas in CS history :) |
Not like that. According to the Language Report, Haskell programs use Unicode so it is a reasonable assumption that the all the Haskell files are always in utf8. The only act in which env is involved is determining the encoding of the console if we are printing something to it (e.g. a Haskell identifier in an error message). |
Didn't know this. I'm not even sure if GHC itself respects this. But if it's in there then we definitely just should use UTF8 everywhere and call it a day. |
@Fuuzetsu Some of it was fixed in GHC a couple of years ago: I believe most other things related to Unicode have been working fine for a while. |
Version
text
version:Error message:
Architecture
armel (emulated by qemu on x86_64 in chroot)
The text was updated successfully, but these errors were encountered: