Hi! When formatting source code examples for manpage I found following obscure bug. grodvi invoked by man -Tdvi replaces all occurrences of dollar character ($) by pound sterling character (£). As $ is used in more languages for accessing variable it is really a problem if is replaced by £.
To demonstrate this problem, look at: $ cat test.man .TH test 1 .BI "perl example: " "$str =~ m/^[a-z]$/;" $ man -Tdvi ./test.man | dvipdfmx > test.pdf And then view test.pdf file. Also man -Tdvi replaces ascii tilde character (~) by tilde accent (˜) and ascii ^ by accent ˆ. Here is how text from pdf file is selected. $ pdftotext test.pdf - test(1) General Commands Manual test(1) perl example: £str =˜ m/ˆ[a-z]£/; 1 Is there any particular reason why dollar is replaced by sterling and ascii characters by accents? -- Pali Rohár pali.ro...@gmail.com
signature.asc
Description: PGP signature