I wrote:
> And in fact I would strongly prefer a 8-line patch to Man to ignore
> non-English manual pages completely (instead of unconfigured groff-utf8 and
> hard-coded special-casing Japanese in Man-1.6f in a way that works only
> with Debian-patched Groff), as it saves the editors from all the encoding
> validation work. This is rather trivial

Attached. One of the reasons for this destructive approach is that Greg 
Schafer doesn't accept anything into DIY that he doesn't fully understand, 
and I want manual pages and error messages to be readable in DIY by default, 
too. Obviously, complete removal of support for translated manual pages by 
this patch makes groff-utf8 unneeded. "+lang none" is still needed.

-- 
Alexander E. Patrakov
diff -ur man-1.6f.orig/configure man-1.6f/configure
--- man-1.6f.orig/configure	2007-08-21 10:15:21.000000000 +0600
+++ man-1.6f/configure	2008-09-13 15:22:52.000000000 +0600
@@ -26,7 +26,7 @@
 # (Indeed, -r may cause the terminal to get into funny states.
 # Very inconvenient. For viewing pages in strange locales, set LC_*.)
 #
-DEFAULTLESSOPT="-is"
+DEFAULTLESSOPT="-isR"
 #
 # Note that not creating any cat directories (/var/cache/man or so)
 # and not making man suid or sgid is recommended.
@@ -476,24 +476,24 @@
   then
     if test $Fnroff = "missing"
     then
-      nroff="nroff -Tlatin1 -mandoc"
+      nroff="nroff -mandoc"
     else
-      nroff="$Fnroff -Tlatin1 -mandoc"
+      nroff="$Fnroff -mandoc"
     fi
     troff="troff -mandoc"
     echo "Warning: could not find groff"
   else
     if test $Fnroff = "missing"
     then
-      nroff="$Fgroff -Tlatin1 -mandoc"
+      nroff="$Fgroff -mandoc"
     else
-      nroff="$Fnroff -Tlatin1 -mandoc"
+      nroff="$Fnroff -mandoc"
     fi
     troff="$Fgroff -Tps -mandoc"
     jnroff="$Fgroff -Tnippon -mandocj"
   fi
   eqn="$Fgeqn -Tps"
-  neqn="$Fgeqn -Tlatin1"
+  neqn="$Fgeqn"
   jneqn="$Fgeqn -Tnippon"
   tbl="$Fgtbl"
   col="$Fcol"
diff -ur man-1.6f.orig/src/manpath.c man-1.6f/src/manpath.c
--- man-1.6f.orig/src/manpath.c	2006-08-04 03:18:33.000000000 +0600
+++ man-1.6f/src/manpath.c	2008-09-13 15:16:29.000000000 +0600
@@ -279,17 +279,6 @@
 	if (alt_system) {
 		add_to_list(dir, alt_system_name, perrs);
 	} else {
-		/* We cannot use "lang = setlocale(LC_MESSAGES, NULL)" or so:
-		   the return value of setlocale is an opaque string. */
-		/* POSIX prescribes the order: LC_ALL, LC_MESSAGES, LANG */
-		if((lang = getenv("LC_ALL")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
-		if((lang = getenv("LC_MESSAGES")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
-		if((lang = getenv("LANG")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
-		if((lang = getenv("LANGUAGE")) != NULL)
-			split2(dir, lang, add_to_mandirlist_x, perrs);
 		add_to_mandirlist_x(dir, 0, perrs);
 	}
 }
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to