From owner-freebsd-bugs Sun Nov 28 14:20:16 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6211715327 for ; Sun, 28 Nov 1999 14:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA64970; Sun, 28 Nov 1999 14:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from postfix2.free.fr (postfix2.free.fr [212.27.32.74]) by hub.freebsd.org (Postfix) with ESMTP id 8271D155AC for ; Sun, 28 Nov 1999 14:16:05 -0800 (PST) (envelope-from root@titine.fr.eu.org) Received: from titine.fr.eu.org (toulouse-50-216.dial.proxad.net [212.27.50.216]) by postfix2.free.fr (Postfix) with ESMTP id 06A80744D3 for ; Sun, 28 Nov 1999 23:15:59 +0100 (MET) Received: by titine.fr.eu.org (Postfix, from userid 0) id 9B9EB148D1; Sun, 28 Nov 1999 23:12:03 +0100 (CET) Message-Id: <19991128221203.9B9EB148D1@titine.fr.eu.org> Date: Sun, 28 Nov 1999 23:12:03 +0100 (CET) From: jaco@titine.fr.eu.org Reply-To: jaco@titine.fr.eu.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/15150: French manpages without accents with FBSD man Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15150 >Category: conf >Synopsis: Taking encoding scheme latin1 into account >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 28 14:20:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Eric Jacoboni >Release: FreeBSD 3.3-STABLE i386 >Organization: None >Environment: Genuine FBSD 3.3-STABLE, with LC_ALL=fr_FR.ISO_8859-1 >Description: I'm translating manpages in french for the french docproj. The translated manpage contains accents, but man refuse to take them into account. >How-To-Repeat: Try to use man with a manpage with accents... see how they disappear. >Fix: I've noticed that the problem resides in the /usr/src/gnu/usr.bin/man/Makefile.inc file : the call to groff is hard coded with the -Tascii option (same for neqn). I suspect that is the same with some other programs... At first glance, it seems that this option could be soft coded according to the system environment. A solution could be : Adding a new macro definition in /etc/make.conf (or other best fitted config file), says : ENCODING= ascii | latin1 | whatever... Using this definition during compilation of various utilities. For the man utility, just have to modify the two following lines in its Makefile.inc : nroff= /usr/bin/groff -S -Wall -mtty-char -Tascii -man neqn= /usr/bin/eqn -Tascii with : nroff= /usr/bin/groff -S -Wall -mtty-char -T${ENCODING} -man neqn= /usr/bin/eqn -T${ENCODING} fix my problem (without the make.conf trick... i've just add a : ENCODING=latin1 in the Makefile.inc in order to test my solution... ;-) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message