Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2001 11:59:43 +0900 (JST)
From:      MORI Kouji <mori@tri.asanuma.co.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/32824: Patch: japanese/man doesn't work -a option
Message-ID:  <20011214.115943.74750974.mori@tri.asanuma.co.jp>

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

>Number:         32824
>Category:       ports
>Synopsis:       Patch: japanese/man doesn't work -a option
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 13 19:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Koji Mori
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
FreeBSD xxx 4.4-STABLE FreeBSD 4.4-STABLE #60: Thu Nov 29 11:59:47 JST 2001 root@xxx:/xxx/src/sys/XXX i386

>Description:
with -a option, japanese/man (jman) search only japanese manual page.
but we expect to search japanese and english (original) manual.

>How-To-Repeat:
do 'jman -a getopt'.  if you have japanese manuals, jman output
getopt(1) and getopt(3) in japanese, and stop.  original manual is not.

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	files/patch-za
#
echo x - files/patch-za
sed 's/^X//' >files/patch-za << 'END-of-files/patch-za'
X--- man/locale.c	2001/08/27 00:01:55
X+++ man/locale.c	2001/12/13 03:00:32
X@@ -12,7 +12,6 @@
X 
X int debug;
X int insecure = 0;
X-int findall;
X char *search_lang_path = "ja%en";
X 
X typedef struct {
X@@ -259,7 +258,7 @@
X   return found;
X }
X 
X-int man_ml(char *name)
X+int man_ml(char *name, int findall)
X {
X   static man_lang_env_t ***root = NULL;
X   man_lang_env_t ***p;
X--- man/locale.h	2001/07/17 01:42:54
X+++ man/locale.h	2001/12/13 02:17:39
X@@ -20,5 +20,5 @@
X char *directive(int);
X int try_section_ml(char *, char *, char *, int, int);
X int try_section(char *, char *, char *, int);
X-int man_ml(char *);
X+int man_ml(char *, int);
X int man(char *);
X--- man/man.c	2001/07/30 08:49:20
X+++ man/man.c	2001/12/13 02:16:57
X@@ -222,7 +222,7 @@
X       }
X       else
X 	{
X-	  status = man_ml (nextarg);
X+	  status = man_ml (nextarg, findall);
X 
X 	  if (status == 0)
X 	    gripe_not_found (nextarg, section);
END-of-files/patch-za
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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