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: Fwd: cannot search for -a in man inside mintty under cygwin-1.7


> moo.tinys wrote:
>>
>> using mintty
>> LANG=zh_CN.UTF-8 mintty
>> inside mintty:
>> $ man man
>> /-
>> Pattern not found Â(press RETURN)

With UTF-8, hyphen/minus symbols in the man page are displays as the
Unicode codepoints for hyphen or minus. These are different from ASCII
'-', which is why your search didn't turn up anything.

This isn't mintty-specific.

Thomas Wolff:
> This was discussed here before but I'm not sure whether a solution was
> already outlined.
> The problem appeared on Linux too, some years ago, but has been fixed
> meanwhile.
> Differences are:
> man calls nroff -mandoc on cygwin, nroff -mandocdb on Linux. The latter
> macro package of groff includes the following which is prepended to the
> manual page before feeding it to nroff for formatting:
> .if '\*[.T]'utf8' \{\
> . Âchar \- \N'45'
> . Âchar Â- \N'45'
> . Âchar Â' \N'39'
> . Âchar Â` \N'96'
> .\}

Thanks, glad to hear there is a fix. I'll use this in the mintty
manpage, so at least searching will work there.

Question: what's the *[.T] pattern matched against?

> Checking the program chain of 'man' with procps, some other macros are added
> already (simply using 'echo'), that's where it could also be added without a
> complete new macro package (i.e. without changing groff). However, the
> auxiliary roff codes are apparently hard-coded in man.exe so that'll have to
> be changed.

What are those auxiliary roff codes?

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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