delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/30/13:43:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG40,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4BB1F2B0.4040900@towo.net>
References: <28139bc1003300442w2d48c7aag371fad0ed9eb26e8 AT mail DOT gmail DOT com> <28139bc1003300513x159749d1j84f197eee085be0 AT mail DOT gmail DOT com> <4BB1F2B0 DOT 4040900 AT towo DOT net>
Date: Tue, 30 Mar 2010 19:43:11 +0100
Message-ID: <416096c61003301143y1b780160s331e2e1522a6ff18@mail.gmail.com>
Subject: Re: Fwd: cannot search for -a in man inside mintty under cygwin-1.7
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> moo.tinys wrote:
>>
>> using mintty
>> LANG=3Dzh_CN.UTF-8 mintty
>> inside mintty:
>> $ man man
>> /-
>> Pattern not found =C2=A0(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' \{\
> . =C2=A0char \- \N'45'
> . =C2=A0char =C2=A0- \N'45'
> . =C2=A0char =C2=A0' \N'39'
> . =C2=A0char =C2=A0` \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 ad=
ded
> already (simply using 'echo'), that's where it could also be added withou=
t 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019