From owner-freebsd-ports Thu Dec 13 19:10:12 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E60DF37B417 for ; Thu, 13 Dec 2001 19:10:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBE3A0Y29711; Thu, 13 Dec 2001 19:10:00 -0800 (PST) (envelope-from gnats) Received: from shiva.tri.asanuma.co.jp (shiva.tri.asanuma.co.jp [210.160.188.2]) by hub.freebsd.org (Postfix) with ESMTP id 80DFF37B41A for ; Thu, 13 Dec 2001 18:59:55 -0800 (PST) Received: from yashoda.tri.asanuma.co.jp (yashoda.tri.asanuma.co.jp [172.16.57.11]) by shiva.tri.asanuma.co.jp (Postfix) with ESMTP id 328415444 for ; Fri, 14 Dec 2001 11:59:44 +0900 (JST) Received: from localhost (kurishna.tri.asanuma.co.jp [172.16.57.2]) by yashoda.tri.asanuma.co.jp (8.11.3nb1/8.11.3) with ESMTP id fBE2xhe25528; Fri, 14 Dec 2001 11:59:43 +0900 (JST) Message-Id: <20011214.115943.74750974.mori@tri.asanuma.co.jp> Date: Fri, 14 Dec 2001 11:59:43 +0900 (JST) From: MORI Kouji To: FreeBSD-gnats-submit@freebsd.org Subject: ports/32824: Patch: japanese/man doesn't work -a option Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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