This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Question marks in localized man pages
- From: Ilya Basin <basinilya at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 11 Sep 2010 21:21:13 +0400
- Subject: Question marks in localized man pages
- Reply-to: Ilya Basin <basinilya at gmail dot com>
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