This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.7 man: '-' char in option/switch in man page is not displayed/not encoded well if LANG=C.UTF-8

LiuYan åç wrote on 2010-04-19:

After moved from Cygwin 1.5 to Cygwin 1.7, the '-' char in switch/option in
man page is not displayed.

As Cygwin 1.7 have revised to 1.7.5 and cygwin-doc-1.7 is released and this
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 LANG=C.GBK,
'-' 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

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 for reference.

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 searching.

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.

Matthias Andree

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]