From root@titine.fr.eu.org Sun Nov 28 14:16:35 1999
Return-Path: <root@titine.fr.eu.org>
Received: from postfix2.free.fr (postfix2.free.fr [212.27.32.74])
	by hub.freebsd.org (Postfix) with ESMTP id 8271D155AC
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: root@titine.fr.eu.org
Reply-To: jaco@titine.fr.eu.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: French manpages without accents with FBSD man
X-Send-Pr-Version: 3.2

>Number:         15150
>Category:       conf
>Synopsis:       Taking encoding scheme latin1 into account
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    phantom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 28 14:20:01 PST 1999
>Closed-Date:    Tue May 29 06:56:02 PDT 2001
>Last-Modified:  Tue May 29 06:57:27 PDT 2001
>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:

From: Alexey Zelkin <phantom@cris.net>
To: jaco@titine.fr.eu.org
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/15150: French manpages without accents with FBSD man
Date: Thu, 16 Dec 1999 09:50:03 +0300

 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 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Mon Jan 10 05:33:11 PST 2000 
Responsible-Changed-Why:  
Mine area 
State-Changed-From-To: open->closed 
State-Changed-By: phantom 
State-Changed-When: Tue May 29 06:56:02 PDT 2001 
State-Changed-Why:  
man is working fine with localized manpages due to bunch of 
modifications made last year. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=15150 
>Unformatted:
