Skip to content

Write locale character encoding to hpc html report

When generating an hpc html report of a Haskell source file containing non-ASCII characters, the characters are not interpreted correctly by the browser. This is caused by a lacking character encoding tag in the html file which causes the browser to fall back to some default encoding which is probably incorrect.

The attached patch writes the localeEncoding to the html file.

Trac metadata
Trac field Value
Version 7.0.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Code Coverage
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information