Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 1997 15:21:40 +0800 (TSD)
From:      "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   gnu/4290: man wrong viewed koi8-r manpages and neqn wrong defined default device
Message-ID:  <199708130721.PAA22172@www.tomsk.su>
Resent-Message-ID: <199708130730.AAA01711@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 13 00:30:01 PDT 1997
>Last-Modified:
>Originator:     Anatoly A. Orehovsky
>Organization:
CISA Ltd.
>Release:        FreeBSD 2.2.2-RELEASE i386
>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

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708130721.PAA22172>