| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00 |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4BB1F2B0.4040900@towo.net> |
| Date: | Tue, 30 Mar 2010 14:46:40 +0200 |
| From: | Thomas Wolff <towo AT towo DOT net> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Fwd: cannot search for -a in man inside mintty under cygwin-1.7 |
| References: | <28139bc1003300442w2d48c7aag371fad0ed9eb26e8 AT mail DOT gmail DOT com> <28139bc1003300513x159749d1j84f197eee085be0 AT mail DOT gmail DOT com> |
| In-Reply-To: | <28139bc1003300513x159749d1j84f197eee085be0@mail.gmail.com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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=zh_CN.UTF-8 mintty
> inside mintty:
> $ man man
> /-
> Pattern not found (press RETURN)
> q
>
> it's actually -
> $ LANG=C man man
> /-
> (no problem)
> q
>
> any idea?
>
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'
.\}
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.
Thomas
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |