Set UTF-8 encoding before writing files (#934)
This should fix #929, as well as guard against future problems of this sort in other places. Basically replaces 'writeFile' (which selects the users default locale) with 'writeUtf8File' (which always uses utf8).
Showing
- haddock-api/src/Haddock/Backends/Hoogle.hs 1 addition, 5 deletionshaddock-api/src/Haddock/Backends/Hoogle.hs
- haddock-api/src/Haddock/Backends/Hyperlinker.hs 2 additions, 1 deletionhaddock-api/src/Haddock/Backends/Hyperlinker.hs
- haddock-api/src/Haddock/Backends/LaTeX.hs 2 additions, 2 deletionshaddock-api/src/Haddock/Backends/LaTeX.hs
- haddock-api/src/Haddock/Backends/Xhtml.hs 5 additions, 5 deletionshaddock-api/src/Haddock/Backends/Xhtml.hs
- haddock-api/src/Haddock/Utils.hs 11 additions, 1 deletionhaddock-api/src/Haddock/Utils.hs
Loading
Please register or sign in to comment