From owner-freebsd-doc@FreeBSD.ORG Sat Oct 27 10:13:03 2007 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0FB516A417 for ; Sat, 27 Oct 2007 10:13:03 +0000 (UTC) (envelope-from magyari@freemail.hu) Received: from fmx07.freemail.hu (fmx07.freemail.hu [195.228.245.57]) by mx1.freebsd.org (Postfix) with SMTP id F055513C4AC for ; Sat, 27 Oct 2007 10:13:02 +0000 (UTC) (envelope-from magyari@freemail.hu) Received: (qmail 13990 invoked from network); 27 Oct 2007 11:46:22 +0200 Received: from fm14.freemail.hu (195.228.245.114) by fmx07.freemail.hu with SMTP; 27 Oct 2007 11:46:22 +0200 Received: (qmail 34861 invoked by uid 1028719); 27 Oct 2007 11:46:22 +0200 Date: Sat, 27 Oct 2007 11:46:22 +0200 (CEST) From: Miklos Magyari To: Gabor Kovesdan In-Reply-To: <47226158.4070304@FreeBSD.org> Message-ID: X-Originating-IP: [15.203.137.72] X-HTTP-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8 MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Cc: ru@FreeBSD.org, Hiroki Sato , doc@FreeBSD.org, Marc Fonvieille Subject: Re: localized man pages X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2007 10:13:03 -0000 hi, > we must be able to do this with our groff 1.19.2, too. I'm not sure how > to adjust man(1) to do it automatically, though. Miklos, the guy, who > volunteered to do some translation work on the manpages also claimed > that he could see the translated manpages properly by using latin1 encoding > instead of ascii. I've took a quick look in man's source. There is a static struct called ltable at line 99 of /usr/src/gnu/usr/bin/man/man/man.c I've added a new entry: "ISO8859-2", "latin1" to prevent using ascii for rendering man pages when this codepage is set. With this change compiled & installed, man renders Hungarian man pages put under /usr/share/man/hu.ISO8859-2 like a charm, all special characters (both lower and upper case) are shown correctly (assuming hu_HU.ISO8859-2 locale is set). This is because latin1 is used and the output is not filtered through 'col'. Of course I don't know if this small change breaks anything, but at least it makes Hungarian man pages working. cheers, mami