| Summary: | Taking encoding scheme latin1 into account | ||
|---|---|---|---|
| Product: | Base System | Reporter: | jaco <jaco> |
| Component: | conf | Assignee: | Alexey Zelkin <phantom> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.3-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
hi, On Sun, Nov 28, 1999 at 11:12:03PM +0100, jaco@titine.fr.eu.org wrote: > >Number: 15150 > >Category: conf > >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... [..] Andrey localized it at the middle of June. Almost all of man-related programs localized now (in 4.0-CURRENT and awaiting MFC). Please take a look there (commit logs by ache at June/Jul). His solution is much more elegant than proposed by you. -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@crimea.edu */ /* http://www.ccssu.crimea.ua/~phantom && phantom@FreeBSD.org */ Responsible Changed From-To: freebsd-bugs->phantom Mine area State Changed From-To: open->closed man is working fine with localized manpages due to bunch of modifications made last year. |
I'm translating manpages in french for the french docproj. The translated manpage contains accents, but man refuse to take them into account. 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... ;-) How-To-Repeat: Try to use man with a manpage with accents... see how they disappear.