groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] man -Tdvi replaces $ by £


From: Pali Rohár
Subject: [groff] man -Tdvi replaces $ by £
Date: Tue, 29 May 2018 00:17:02 +0200
User-agent: NeoMutt/20170113 (1.7.2)

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
address@hidden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]