From tolik@www.tomsk.su  Wed Aug 13 00:22:15 1997
Received: from www.tomsk.su (www.tomsk.su [193.124.185.18])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA01320
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Aug 1997 00:22:02 -0700 (PDT)
Received: (from tolik@localhost)
	by www.tomsk.su (8.8.5/8.8.5) id PAA22172;
	Wed, 13 Aug 1997 15:21:40 +0800 (TSD)
Message-Id: <199708130721.PAA22172@www.tomsk.su>
Date: Wed, 13 Aug 1997 15:21:40 +0800 (TSD)
From: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
Reply-To: tolik@www.tomsk.su, tolik@mpeks.tomsk.su
To: FreeBSD-gnats-submit@freebsd.org
Subject: man wrong viewed koi8-r manpages and neqn wrong defined default device
X-Send-Pr-Version: 3.2

>Number:         4290
>Category:       gnu
>Synopsis:       man wrong viewed koi8-r manpages and neqn wrong defined default device
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 13 00:30:01 PDT 1997
>Closed-Date:    Mon Jun 7 12:01:53 PDT 1999
>Last-Modified:  Mon Jun  7 12:04:40 PDT 1999
>Originator:     Anatoly A. Orehovsky
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
CISA Ltd.
>Environment:

I have any software with koi8-r manpages. nroff -man | more -e viewed this
correct but man is not.

>Description:

man wrong defined default device for groff as ascii and wrong viewed koi8-r
or latin1 manpages in $LANG KOI8-R or ISO_8859-1 environment. neqn wrong defined
default device as ascii.

>How-To-Repeat:

man <koi8-r or latin1 manpage>

>Fix:
Patches:

cd /usr/src/contrib/groff/eqn

*** neqn.sh.orig	Wed Aug 13 14:39:49 1997
--- neqn.sh	Wed Aug 13 14:49:08 1997
***************
*** 2,5 ****
  # Provision of this shell script should not be taken to imply that use of
  # GNU eqn with groff -Tascii|-Tlatin1 is supported.
  
! exec @g@eqn -Tascii ${1+"$@"}
--- 2,20 ----
  # Provision of this shell script should not be taken to imply that use of
  # GNU eqn with groff -Tascii|-Tlatin1 is supported.
  
! # Default device.
! if test `expr "$LC_CTYPE" : ".*\.ISO_8859-1"` -gt 0 || \
!    test `expr "$LANG" : ".*\.ISO_8859-1"` -gt 0
! then
! 	T=-Tlatin1
! else
! if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
!    test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
! then
! 	T=-Tkoi8-r
! else
! 	T=-Tascii
! fi
! fi
! 
! exec @g@eqn -T${T} ${1+"$@"}

cd /usr/src/gnu/usr.bin/man

*** Makefile.inc.orig	Wed Aug 13 13:51:47 1997
--- Makefile.inc	Wed Aug 13 14:52:21 1997
***************
*** 8,17 ****
  pager=			more -s
  manpath_config_file=	/etc/manpath.config
  troff=			/usr/bin/groff -man
! nroff=                  /usr/bin/groff -Wall -mtty-char -Tascii -man
  apropos=		/usr/bin/apropos
  whatis=			/usr/bin/whatis
! neqn=                   /usr/bin/eqn -Tascii
  tbl=			/usr/bin/tbl
  col=			/usr/bin/col
  vgrind=			/usr/bin/vgrind
--- 8,17 ----
  pager=			more -s
  manpath_config_file=	/etc/manpath.config
  troff=			/usr/bin/groff -man
! nroff=                  /usr/bin/nroff -man
  apropos=		/usr/bin/apropos
  whatis=			/usr/bin/whatis
! neqn=                   /usr/bin/neqn
  tbl=			/usr/bin/tbl
  col=			/usr/bin/col
  vgrind=			/usr/bin/vgrind

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ache 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Sun Sep 14 11:20:41 PDT 1997 
Responsible-Changed-Why:  
Internationalization is Andrey A. Chernov area. 
State-Changed-From-To: open->analyzed 
State-Changed-By: ache 
State-Changed-When: Sun Sep 14 19:12:53 PDT 1997 
State-Changed-Why:  

neqn fix applied in neqn.sh v1.2 

man fix not applied because first person who read manpage write 
it to disk in his encoding (namely Latin1 or KOI8-R) which may 
prevent other users to read it. 

man needs special option to specify encoding to each manpath component 
in /etc/manpath.config file, something like 

MANDATORY_MANPATH       /usr/share/man koi8-r 

to specify default encoding in per-manpath basis 
State-Changed-From-To: analyzed->closed 
State-Changed-By: ache 
State-Changed-When: Mon Jun 7 12:01:53 PDT 1999 
State-Changed-Why:  
man fixed to understand localized hierarchies 
>Unformatted:
