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

man-db + kterm can't show english pages properly



Hello, I've noticed man-db + kterm can't display english pages properly.
As stated on 'man man', this is known behaviour; but I have two workarounds
which can fix this. I checked the first with jgroff, groff, latin1 languages
and had no side-effects; the second one doesn"t seem like a good idea,
 I'd suggest using the first one.

1) Apply the following patch to man-db-2.3.16

--- src/man.c.old       Mon Apr  3 19:27:31 2000
+++ src/man.c   Mon Apr  3 19:31:16 2000
@@ -1342,7 +1342,7 @@
                /* load the roff_device value dependent on the language dir in path */
                if ( ! roff_device && ! troff ) {
                        if (( ! lang ) || ( ! *lang )) {
-                               roff_device = "latin1";
+                               roff_device = "nippon";
                                putenv( "LESSCHARSET=latin1");
                        } else {
                                int j;


2)  Apply the following patch to man-db-2.3.16
* Users of kterm have to set MANOPT=-Tnippon
* There may be problems with changing the usage of a command-line argument.

--- src/man.c.old	Mon Apr  3 19:27:31 2000
+++ src/man.c	Mon Apr  3 19:35:24 2000
@@ -1060,7 +1060,7 @@
 				   Why does -T imply -t? */
 				/* as this is an optional argument */
 				roff_device = (optarg ? optarg : "ps");
-				troff = 1;
+				//troff = 1;
 				break;
 			case 'X':
 #ifdef TROFF_IS_GROFF

-- 
Germano Leichsenring
  Kobe University


Reply to: