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