Date: Sun, 28 Nov 1999 23:12:03 +0100 (CET) From: jaco@titine.fr.eu.org To: FreeBSD-gnats-submit@freebsd.org Subject: conf/15150: French manpages without accents with FBSD man Message-ID: <19991128221203.9B9EB148D1@titine.fr.eu.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991128221203.9B9EB148D1>