[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:14222] Re: Bug#JP/859: Japanese manpages from Debian cannot be read without man-db-ja from Debian JP



むつみです。

 Kaz Sasayama <Kaz.Sasayama@xxxxxxxxxxxxxxx> さんは
   Subject: [debian-users:14220] Re: Bug#JP/859: Japanese manpages from Debian cannot be read without man-db-ja from Debian JP
   Message-ID: <2m677ajgjq.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx>
 において言いました

>> そういえば、man-dbとman-db-jaってどこがちゃうの?

 うん? と思って 68 の diff を眺めたところ、

+++ man-db-ja-2.3.10/debian/changelog	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/conffiles	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/control	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/control~	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/menu	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/postinst	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/preinst	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/debian/rules	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man1/apropos.man1	Tue Apr  6 12:34:00 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man1/man.man1	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man1/manpath.man1	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man1/whatis.man1	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man1/zsoelim.man1	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man5/manpath.man5	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man8/accessdb.man8	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man8/catman.man8	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/man/ja_JP.ujis/man8/mandb.man8	Tue Apr  6 12:34:01 1999
+++ man-db-ja-2.3.10/src/lexgrog.l	Tue Apr  6 12:33:59 1999
+++ man-db-ja-2.3.10/src/man.c	Tue Apr  6 12:34:00 1999
+++ man-db-ja-2.3.10/src/man_db.config	Tue Apr  6 12:34:00 1999

 このうち、直接動作に影響を与えそうな部分は、lexgrog.l と

--- man-db-2.3.10/src/man.c	Tue Apr  6 12:31:56 1999
+++ man-db-ja-2.3.10/src/man.c	Tue Apr  6 12:34:00 1999
@@ -707,6 +707,7 @@
 			internal_locale[2] = '\0';
 	}
 
+
 /* export argv, it might be needed when invoking the vendor supplied browser */
 #if defined _AIX || defined __sgi
 	global_argv = argv;
@@ -771,6 +772,11 @@
 	get_term(); /* stores terminal settings */
 	if (debug) fprintf(stderr, "real user = %d; effective user = %d\n", ruid, euid);
 
+	/* JAPANESE VERSION */
+	if (debug) {
+	    fprintf(stderr, "main(): locale= %s,internal_locale= %s\n", locale, internal_locale);
+	}
+	    
 #ifdef HAVE_SETLOCALE
 	/* close this locale and reinitialise incase a new locale was 
 	   issued as an argument or in $MANOPT */
@@ -812,8 +818,9 @@
 		gripe_no_name (NULL);
 
 	putenv("LESSCHARSET=latin1");
-
-	signal( SIGINT, int_handler);
+	if (access("/usr/bin/jless", X_OK)) {
+	    putenv("LESSCHARSET=japanese");
+	}
 
 	/* man issued with `-l' option */
 	if (local_man_file) {


この後半部分だけです。つまり、本来の man-db で日本語の man が扱えない
のは、「バグ」と言ってもいいレベルかと。。

-- 
 From Nagoya
  ishikawa@xxxxxxxxxxx, ishikawa@debian.or.jp,
   ishikawa@xxxxxxxxxxxxx, ( mutsumi@xxxxxxxxxxx for PostPet only )
  ** 石川 睦%無意味な全文引用をする人は嫌い@日本 Linux 協会 **
           LC98 発表資料 http://www.debian.or.jp/~ishikawa/