This is the mail archive of the
mailing list for the Cygwin project.
Re: Cygwin 1.7 man: '-' char in option/switch in man page is not displayed/not encoded well if LANG=C.UTF-8
- From: "Matthias Andree" <matthias dot andree at gmx dot de>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Apr 2010 13:08:38 +0300
- Subject: Re: Cygwin 1.7 man: '-' char in option/switch in man page is not displayed/not encoded well if LANG=C.UTF-8
- References: <firstname.lastname@example.org>
LiuYan åç wrote on 2010-04-19:
After moved from Cygwin 1.5 to Cygwin 1.7, the '-' char in switch/option
man page is not displayed.
As Cygwin 1.7 have revised to 1.7.5 and cygwin-doc-1.7 is released and
problem still exists, so I decide to figure it out.
I have a previous post "Cygwin 1.7: Empty/white-space output when display
Chinese characters in GBK charset encoding?" here
It seems this problem is similar to that one, because if i set
'-' char will displayed well. But Cygwin 1.7 select UTF-8 as default
encoding, is it 'man' does not follow this default encoding?
please see the screenshot from old.nabble.com:
Short story: groff 1.20.1 seems to fix this.
I didn't follow all of this, but basically it's that groff macros would
use U+2212 (MINUS SIGN, â) or U+2010 (HYPHEN, -) for "\-" and sometimes
"-" when they could be using U+002D (HYPHEN-MINUS, -) for compatibility
This has been discussed on the groff lists three years ago, see the thread
starting at http://email@example.com/msg03657.html for
There is also a related groff commit,
2009-01-03 Werner LEMBERG <address omitted>
* tmac/an-old.tmac, tmac/doc.tmac: For -Tutf8, map \-, -, ', and `
conservatively to ASCII for the sake of easy cut and paste.
While it is meant for cut and paste, it would incidentally also fix
Relevant changes are:
It appears that this got fixed in groff 1.20.1 (I just tried this on
1.7.5(0.225/5/3) with mintty 0.6.1 on Windows 7 Pro German), so an update
to groff might fix this for good.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple