hp2ps produces unescaped backslashes for nested functions
ghc 7.4, when compiling with -prof -auto-all, includes nested functions as cost centres, sometimes including backslashes - e.g. it called one of my functions "foo.go.\" in the profiling output.
hp2ps, in the file Key.c, function KeyEntry, does not escape backslashes in the 'name' parameter.
As a result, the ps file will contain an incorrect or unterminated string, causing it to be non-displayable or non-convertible to pdf.
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.1-rc1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Profiling |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |