Bug 131562

Summary: [patch] groff(1): don't corrupt man pages by replacing all `-' symbols with unicode 0x2212
Product: Documentation Reporter: Dmitry Marakasov <amdmi3>
Component: Books & ArticlesAssignee: Gavin Atkinson <gavin>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
R.proto.patch none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2009-02-10 16:20:01 UTC
While formating man pages, groff does replace all `-' (U+002D HYPHEN-MINUS) with `â' (U+2212 MINUS SIGN). This is never correct as command line argument descriptions, mathematical operator descriptions and other stuff become broken and useless for copypasting and search.

The fix attached is a workaround (thanks swell.k at gmail dot com), but that's not enought as there are other cases of symbol corruption.

Examples from `man sh`:

set -E
set âE

<&    >&    <<-   >|
<&    >&    <<â   >|

backquote (``')
backquote (âââ) (U+2018 LEFT SINGLE QUOTATION MARK)

I guess the correct fix would be to always use -Tascii for man formatting.

How-To-Repeat: man anything with UTF-8 locale
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2009-02-10 17:12:26 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-doc

Over to maintainer(s)
Comment 2 swell.k 2009-05-21 21:19:45 UTC
Looks like same workaround as in the patch was applied by r192561[1].

[1] http://docs.FreeBSD.org/cgi/mid.cgi?200905211756.n4LHu0Gf074528
Comment 3 Gavin Atkinson freebsd_committer freebsd_triage 2009-08-12 16:05:55 UTC
State Changed
From-To: open->closed

Fixed in HEAD and RELENG_7 


Comment 4 Gavin Atkinson freebsd_committer freebsd_triage 2009-08-12 16:05:55 UTC
Responsible Changed
From-To: freebsd-doc->gavin