X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Date: Sat, 11 Sep 2010 21:21:13 +0400 From: Ilya Basin Reply-To: Ilya Basin Message-ID: <1334501311.20100911212113@gmail.com> To: cygwin AT cygwin DOT com Subject: Question marks in localized man pages MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin 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