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]

Question marks in localized man pages


Hi. My default LANG is C.UTF-8. If I change it to ru.UTF-8, all
non-ascii characters in man pages are displayed as question marks.
I found that on Linux before going to nroff, the unzipped man page is
first piped through /usr/bin/preconv that escapes non-ascii chars:
  vim \- Vi IMproved (\[u0423]\[u043B]\[u0443]\[u0447]\[u0448]\[u0435]\[u043D]\[u043D]\[u044B]\[u0439] Vi)
On Cygwin the unzipped man page goes directly to nroff, which replaces
unknown characters with question marks.
I added preconv to /etc/man.conf as follows:
  NROFF           /usr/bin/preconv -e UTF-8 | /usr/bin/nroff -c -mandoc 2>/dev/null
That solved my problem. I wonder why preconv isn't there by default.







--
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]