hpc: Fix encoding issues. Add test for and fix #17073
* Make sure files are being read/written in UTF-8. Set encoding while writing HTML output. Also set encoding while writing and reading .tix files although we don't yet have a ticket complaining that this poses problems. * Set encoding in html header to utf8 * Upgrade to new version of 'hpc' library and reuse `readFileUtf8` and `writeFileUtf8` functions * Update git submodule for `hpc` * Bump up `hpc` executable version Co-authored-by:Ben Gamari <ben@smart-cactus.org> (cherry picked from commit afb23168)
Showing
- libraries/hpc 1 addition, 1 deletionlibraries/hpc
- testsuite/tests/hpc/Makefile 8 additions, 0 deletionstestsuite/tests/hpc/Makefile
- testsuite/tests/hpc/T17073.hs 5 additions, 0 deletionstestsuite/tests/hpc/T17073.hs
- testsuite/tests/hpc/T17073.stdout 15 additions, 0 deletionstestsuite/tests/hpc/T17073.stdout
- testsuite/tests/hpc/all.T 2 additions, 0 deletionstestsuite/tests/hpc/all.T
- utils/hpc/HpcMarkup.hs 5 additions, 25 deletionsutils/hpc/HpcMarkup.hs
- utils/hpc/HpcUtils.hs 3 additions, 4 deletionsutils/hpc/HpcUtils.hs
- utils/hpc/hpc-bin.cabal 3 additions, 4 deletionsutils/hpc/hpc-bin.cabal
Loading
Please register or sign in to comment