hp2ps produces unescaped backslashes for nested functions
|Reported by:||jkff||Owned by:|
|Type of failure:||Incorrect result at runtime||Test Case:|
|Related Tickets:||Differential Rev(s):|
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.